Commit e884780e e884780e51943a7a6ecb7f6db7003103d82e4842 by Sergey Poznyakoff

(mail_expand_name): Do not proceed to opening the mailbox if failed to get its name

1 parent 44774504
...@@ -37,7 +37,10 @@ mail_expand_name (const char *name) ...@@ -37,7 +37,10 @@ mail_expand_name (const char *name)
37 { 37 {
38 case '#': 38 case '#':
39 if (!prev_name) 39 if (!prev_name)
40 util_error (_("No previous file")); 40 {
41 util_error (_("No previous file"));
42 return NULL;
43 }
41 else 44 else
42 name = xstrdup (prev_name); 45 name = xstrdup (prev_name);
43 break; 46 break;
...@@ -128,3 +131,4 @@ mail_file (int argc, char **argv) ...@@ -128,3 +131,4 @@ mail_file (int argc, char **argv)
128 } 131 }
129 return 1; 132 return 1;
130 } 133 }
134
......