]> granicus.if.org Git - neomutt/commitdiff
Initialize imap_authenticate's return value to something meaningful
authorPietro Cerutti <gahr@gahr.ch>
Tue, 22 Nov 2016 14:29:39 +0000 (14:29 +0000)
committerRichard Russon <rich@flatcap.org>
Thu, 24 Nov 2016 14:54:20 +0000 (14:54 +0000)
Closes: #256
imap/auth.c

index 047531a5ebd790e8d1b163e815fa5d228ea15fae..68dcb8647a898ddccfa76e4d8383f345fc2b9205 100644 (file)
@@ -54,7 +54,7 @@ int imap_authenticate (IMAP_DATA* idata)
   char* methods;
   char* method;
   char* delim;
-  int r = -1;
+  int r = IMAP_AUTH_UNAVAIL;
 
   if (ImapAuthenticators && *ImapAuthenticators)
   {