(mail_expand_name): Do not proceed to opening the mailbox if failed to get its name
Showing
1 changed file
with
5 additions
and
1 deletions
... | @@ -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 | ... | ... |
-
Please register or sign in to post a comment