* path.cc (set_normalized_path): Allow empty pathnames.

This commit is contained in:
Corinna Vinschen 2004-12-22 11:31:30 +00:00
parent e85c18a883
commit 13d991bbea
2 changed files with 5 additions and 1 deletions

View File

@ -1,3 +1,7 @@
2004-12-22 Corinna Vinschen <corinna@vinschen.de>
* path.cc (set_normalized_path): Allow empty pathnames.
2004-12-21 Christopher Faylor <cgf@timesys.com>
* spawn.cc (spawn_guts): Force parent to forget about P_DETACH'ed

View File

@ -429,7 +429,7 @@ path_conv::set_normalized_path (const char *path_copy)
char *eopath = strchr (path, '\0');
size_t n;
if (dev.devn != FH_FS || strncmp (path_copy, "//./", 4) == 0)
if (dev.devn != FH_FS || !*path_copy || strncmp (path_copy, "//./", 4) == 0)
n = strlen (path_copy) + 1;
else
{