From 52a721187f6a23531dbaeb0b47f5000ead24a592 Mon Sep 17 00:00:00 2001 From: Michael Elkins Date: Thu, 27 Jun 2002 03:55:01 +0000 Subject: [PATCH] explicitly set global.pass to NULL when getpass() returns an empty string. --- imap.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/imap.c b/imap.c index 85bda5c..828ca48 100644 --- a/imap.c +++ b/imap.c @@ -797,7 +797,7 @@ imap_open (config_t * box, unsigned int minuid, imap_t * imap, int flags) * if we don't have a global password set, prompt the user for * it now. */ - if (!global.pass || !*global.pass) + if (!global.pass) { global.pass = getpass ("Password:"); if (!global.pass) @@ -808,6 +808,7 @@ imap_open (config_t * box, unsigned int minuid, imap_t * imap, int flags) if (!*global.pass) { fprintf (stderr, "Skipping %s, no password", box->path); + global.pass = NULL; /* force retry */ break; } /*