]> diplodocus.org Git - nmh/commitdiff
Oops, fc31cece had a syntax error that gcc ignored, clang doesn't.
authorRalph Corderoy <ralph@inputplus.co.uk>
Mon, 17 Oct 2016 10:30:24 +0000 (11:30 +0100)
committerRalph Corderoy <ralph@inputplus.co.uk>
Mon, 17 Oct 2016 10:30:24 +0000 (11:30 +0100)
Two logical-or operators in a row don't upset gcc.  Who said parsing was
a solved problem?

uip/mhlogin.c

index 56b1e36f02112dd893784f0e4200b318dc711720..46a5a161d8e0b91e5d144f5ede136a5b63d025a1 100644 (file)
@@ -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? ");