summaryrefslogtreecommitdiff
path: root/peripheral
diff options
context:
space:
mode:
Diffstat (limited to 'peripheral')
-rw-r--r--peripheral/main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/peripheral/main.c b/peripheral/main.c
index 0f5210403..91adb45fc 100644
--- a/peripheral/main.c
+++ b/peripheral/main.c
@@ -73,7 +73,7 @@ static void prepare_filesystem(void)
if (!is_init)
return;
- for (i = 0; mount_table[i].fstype; i++) {
+ for (i = 0; mount_table[i].fstype && mount_table[i].target; i++) {
struct stat st;
if (lstat(mount_table[i].target, &st) < 0) {