diff options
author | Eduardo Chappa <chappa@washington.edu> | 2021-05-08 21:01:02 -0600 |
---|---|---|
committer | Eduardo Chappa <chappa@washington.edu> | 2021-05-08 21:01:02 -0600 |
commit | b5eb45a153202d72aeb48de1149e7c74aef979fd (patch) | |
tree | 1fbc156a717e7963cd0c02fd7352bc801949c550 /alpine/imap.c | |
parent | 2f953255a8c494e3033015eb064c6ecace9ffeda (diff) | |
download | alpine-b5eb45a153202d72aeb48de1149e7c74aef979fd.tar.xz |
* Clear out some gcc warnings, and code improvement. Work in progress.
Diffstat (limited to 'alpine/imap.c')
-rw-r--r-- | alpine/imap.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/alpine/imap.c b/alpine/imap.c index 91f87b16..e1abfd8b 100644 --- a/alpine/imap.c +++ b/alpine/imap.c @@ -165,7 +165,7 @@ OAUTH2_S * oauth2_select_flow(char *host) { OAUTH2_S *oa2list, *oa2; - int i, rv; + int i = 0, rv; char *method; if(ps_global->ttyo){ @@ -474,7 +474,7 @@ char * oauth2_get_access_code(unsigned char *url, char *method, OAUTH2_S *oauth2, int *tryanother) { char tmp[MAILTMPLEN]; - char *code; + char *code = NULL; if(ps_global->ttyo){ SCROLL_S sargs; @@ -3775,6 +3775,7 @@ write_passfile(pinerc, l) fclose(fp); #ifdef SMIME if(text != NULL){ + i = 0; /* to quell gcc */ if(ps_global->pwdcert == NULL){ q_status_message(SM_ORDER, 3, 3, "Attempting to encrypt password file"); i = setup_pwdcert(&ps_global->pwdcert); |