summaryrefslogtreecommitdiffstats
path: root/winsup/cygwin/path.cc
diff options
context:
space:
mode:
Diffstat (limited to 'winsup/cygwin/path.cc')
-rw-r--r--winsup/cygwin/path.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/winsup/cygwin/path.cc b/winsup/cygwin/path.cc
index 87f3c7a02..4cb628f9e 100644
--- a/winsup/cygwin/path.cc
+++ b/winsup/cygwin/path.cc
@@ -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
{