From: Ralph Corderoy Date: Mon, 17 Oct 2016 10:30:24 +0000 (+0100) Subject: Oops, fc31cece had a syntax error that gcc ignored, clang doesn't. X-Git-Url: https://diplodocus.org/git/nmh/commitdiff_plain/c4db59aa4b58bca9cd146ae30f507c16218a67d7?hp=1af33bc5b6f8b127b2bcd68804d32ecac3ee5943 Oops, fc31cece had a syntax error that gcc ignored, clang doesn't. Two logical-or operators in a row don't upset gcc. Who said parsing was a solved problem? --- diff --git a/uip/mhlogin.c b/uip/mhlogin.c index 56b1e36f..46a5a161 100644 --- a/uip/mhlogin.c +++ b/uip/mhlogin.c @@ -101,7 +101,7 @@ do_login(const char *svc, const char *user, const char *browser, int snoop) fflush(stdout); code = geta(); - while (!*code || || + while (!*code || ((cred = mh_oauth_authorize(code, ctx)) == NULL && mh_oauth_get_err_code(ctx) == MH_OAUTH_BAD_GRANT)) { printf(!*code ? "Empty code; try again? " : "Code rejected; try again? ");