Ticket #1453 (crash mc on create new file in external editor (S-F4))

fix: crash mc when path is null on create new file in external editor
This commit is contained in:
Ilia Maslakov 2009-08-03 15:37:55 +00:00
parent 1affb29969
commit 3b1070fb3d
1 changed files with 5 additions and 2 deletions

View File

@ -506,6 +506,9 @@ vfs_canon_and_translate (const char *path)
{
char *canon;
char *result;
if (path == NULL)
canon = g_strdup ("");
else
canon = vfs_canon (path);
result = vfs_translate_path_n (canon);
g_free (canon);