Mercurial > dovecot > core-2.2
changeset 21607:39943da54ca7
auth: oauth2 mechanism: Fixed implicit boolean expression involving a pointer.
Found with Clang -Wstrict-bool.
author | Stephan Bosch <stephan.bosch@dovecot.fi> |
---|---|
date | Sun, 19 Feb 2017 21:58:54 +0100 |
parents | 6f2e7eb1ee90 |
children | 62897d9f1e85 |
files | src/auth/mech-oauth2.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/auth/mech-oauth2.c Sat Feb 18 05:01:50 2017 +0200 +++ b/src/auth/mech-oauth2.c Sun Feb 19 21:58:54 2017 +0100 @@ -54,7 +54,7 @@ break; default: /* we could get new token after this */ - if (request->mech_password) + if (request->mech_password != NULL) request->mech_password = NULL; auth_request_handler_reply_continue(request, error, strlen(error)); oauth2_req->failed = TRUE;