diff src/vdisk.c @ 71:eb9be32c701c

fix leval
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Sun, 05 Aug 2018 22:17:44 +0900
parents 1887f7098f15
children fa0fbcbccbc9
line wrap: on
line diff
--- a/src/vdisk.c	Sun Aug 05 16:12:30 2018 +0900
+++ b/src/vdisk.c	Sun Aug 05 22:17:44 2018 +0900
@@ -205,7 +205,7 @@
         while(*p==' ') p++;
     }
     char *name1 = addCurdir(name,pd,curdir);
-    if (name1!=name && name1!=path) free(name);
+    if (name1!=name && path!=name) free(name);
     if (name1==0) return 0;
     pd->name = name1;
 if(vdiskdebug&2) {