Meco Man 4 years ago
parent
commit
540bacad9c
1 changed files with 1 additions and 1 deletions
  1. 1 1
      components/libc/compilers/dlib/syscall_remove.c

+ 1 - 1
components/libc/compilers/dlib/syscall_remove.c

@@ -19,6 +19,6 @@ int remove(const char *val)
 #ifndef RT_USING_DFS
 #ifndef RT_USING_DFS
     return -1;
     return -1;
 #else
 #else
-    return unlink(filename);
+    return unlink(val);
 #endif
 #endif
 }
 }