summaryrefslogtreecommitdiff
path: root/firmware/common/filefuncs.c
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/common/filefuncs.c')
-rw-r--r--firmware/common/filefuncs.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/firmware/common/filefuncs.c b/firmware/common/filefuncs.c
index 19b8eff612..c31971779d 100644
--- a/firmware/common/filefuncs.c
+++ b/firmware/common/filefuncs.c
@@ -61,9 +61,9 @@ bool file_exists(const char *file)
61 int fd; 61 int fd;
62 62
63#ifdef DEBUG 63#ifdef DEBUG
64 if (!file || strlen(file) <= 0) 64 if (!file || !*file)
65 { 65 {
66 DEBUGF("%s(): Invalid parameter!\n"); 66 DEBUGF("%s(%p): Invalid parameter!\n", __func__, file);
67 return false; 67 return false;
68 } 68 }
69#endif 69#endif