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:
Miguel de Icaza 1999-04-19 03:33:56 +00:00
parent a7f00891d1
commit e67b78b16c
2 changed files with 7 additions and 0 deletions

View File

@ -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):

View File

@ -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';