1
0
forked from aniani/vim

updated for version 7.0-172

This commit is contained in:
Bram Moolenaar
2006-11-28 17:36:37 +00:00
parent 3d20ca1ad1
commit 4632d298ad
2 changed files with 8 additions and 3 deletions

View File

@@ -340,7 +340,7 @@ do_errthrow(cstack, cmdname)
/* If no exception is to be thrown or the conversion should be done after
* returning to a previous invocation of do_one_cmd(), do nothing. */
if (*msg_list == NULL)
if (msg_list == NULL || *msg_list == NULL)
return;
if (throw_exception(*msg_list, ET_ERROR, cmdname) == FAIL)
@@ -2026,8 +2026,11 @@ leave_cleanup(csp)
/* If an error was about to be converted to an exception when
* enter_cleanup() was called, free the message list. */
free_msglist(*msg_list);
*msg_list = NULL;
if (msg_list != NULL)
{
free_msglist(*msg_list);
*msg_list = NULL;
}
}
/*