* path.cc (set_normalized_path): Allow empty pathnames.
This commit is contained in:
parent
e85c18a883
commit
13d991bbea
|
@ -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
|
||||
|
|
|
@ -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
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue