mirror of
https://github.com/MidnightCommander/mc
synced 2025-01-22 03:02:06 +03:00
1999-04-18 Miguel de Icaza <miguel@nuclecu.unam.mx>
* extfs.c (get_path_from_entry): Fix a crash here.
This commit is contained in:
parent
a7f00891d1
commit
e67b78b16c
@ -1,3 +1,7 @@
|
||||
1999-04-18 Miguel de Icaza <miguel@nuclecu.unam.mx>
|
||||
|
||||
* extfs.c (get_path_from_entry): Fix a crash here.
|
||||
|
||||
1999-04-12 Andrew T. Veliath <andrewtv@usa.net>
|
||||
|
||||
* extfs.c (extfs_unlink):
|
||||
|
@ -461,6 +461,9 @@ static char *get_path_from_entry (struct entry *entry)
|
||||
head = p;
|
||||
len += strlen (entry->name) + 1;
|
||||
}
|
||||
|
||||
if (len == 0)
|
||||
return g_strdup ("");
|
||||
|
||||
localpath = g_malloc (len);
|
||||
*localpath = '\0';
|
||||
|
Loading…
Reference in New Issue
Block a user