summaryrefslogtreecommitdiff
path: root/peripheral
diff options
context:
space:
mode:
authorLuiz Augusto von Dentz <luiz.von.dentz@intel.com>2021-12-20 15:51:49 -0800
committerLuiz Augusto von Dentz <luiz.von.dentz@intel.com>2021-12-23 11:45:31 -0800
commit2be2b945e23ea9740aef79d1e719ce793413e129 (patch)
tree08c77aca2541c256f72b2e95f068e264de5c6615 /peripheral
parent4839b1135d68adca9d58a0226734cac4a9793071 (diff)
downloadbluez-2be2b945e23ea9740aef79d1e719ce793413e129.tar.gz
build: Fix build when sanitizer are enabled
This fixes various issues found when sanitizers are enabled.
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) {