summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--common/uimage.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/common/uimage.c b/common/uimage.c
index c72db417a5..3a9753459a 100644
--- a/common/uimage.c
+++ b/common/uimage.c
@@ -225,8 +225,8 @@ void uimage_close(struct uimage_handle *handle)
free(handle->name);
free(handle);
- if (IS_BUILTIN(CONFIG_FS_TFTP) && !stat("/.uimage_tmp", &s))
- unlink("/.uimage_tmp");
+ if (IS_BUILTIN(CONFIG_FS_TFTP) && !stat(uimage_tmp, &s))
+ unlink(uimage_tmp);
}
EXPORT_SYMBOL(uimage_close);