* 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

@@ -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
{