fflush(stdout);
code = geta();
- while (strlen(code) == 0 ||
+ while (!*code ||
((cred = mh_oauth_authorize(code, ctx)) == NULL
&& mh_oauth_get_err_code(ctx) == MH_OAUTH_BAD_GRANT)) {
- printf(strlen(code) == 0 ? "Empty code; try again? " : "Code rejected; try again? ");
+ printf(!*code ? "Empty code; try again? " : "Code rejected; try again? ");
fflush(stdout);
code = geta();
}