No OOM in home_replace_save()

This commit is contained in:
Felipe Oliveira Carvalho
2014-05-30 23:53:03 -03:00
parent cca66742eb
commit a26a1697c7
4 changed files with 18 additions and 27 deletions

View File

@@ -18645,17 +18645,13 @@ int store_session_globals(FILE *fd)
*/
void last_set_msg(scid_T scriptID)
{
char_u *p;
if (scriptID != 0) {
p = home_replace_save(NULL, get_scriptname(scriptID));
if (p != NULL) {
verbose_enter();
MSG_PUTS(_("\n\tLast set from "));
MSG_PUTS(p);
free(p);
verbose_leave();
}
char_u *p = home_replace_save(NULL, get_scriptname(scriptID));
verbose_enter();
MSG_PUTS(_("\n\tLast set from "));
MSG_PUTS(p);
free(p);
verbose_leave();
}
}