Shortcut chasing round strtab when we're not the last reference.
[p5sagit/p5-mst-13.2.git] / ext / Cwd / Cwd.xs
index 97c583f..e7323ab 100644 (file)
@@ -417,7 +417,7 @@ PPCODE:
     char *path;
     char buf[MAXPATHLEN];
 
-    path = pathsv ? SvPV_nolen(pathsv) : ".";
+    path = pathsv ? SvPV_nolen(pathsv) : (char *)".";
 
     if (bsd_realpath(path, buf)) {
         sv_setpvn(TARG, buf, strlen(buf));