diff --git a/components/libc/compilers/dlib/syscall_remove.c b/components/libc/compilers/dlib/syscall_remove.c index ca949a5bc1..477955d0e1 100644 --- a/components/libc/compilers/dlib/syscall_remove.c +++ b/components/libc/compilers/dlib/syscall_remove.c @@ -19,6 +19,6 @@ int remove(const char *val) #ifndef RT_USING_DFS return -1; #else - return unlink(filename); + return unlink(val); #endif }