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)
{
case '#':
if (!prev_name)
{
util_error (_("No previous file"));
return NULL;
}
else
name = xstrdup (prev_name);
break;
......@@ -128,3 +131,4 @@ mail_file (int argc, char **argv)
}
return 1;
}
......