diff options
author | Luiz Augusto von Dentz <luiz.von.dentz@intel.com> | 2021-12-20 15:51:49 -0800 |
---|---|---|
committer | Luiz Augusto von Dentz <luiz.von.dentz@intel.com> | 2021-12-23 11:45:31 -0800 |
commit | 2be2b945e23ea9740aef79d1e719ce793413e129 (patch) | |
tree | 08c77aca2541c256f72b2e95f068e264de5c6615 /tools/test-runner.c | |
parent | 4839b1135d68adca9d58a0226734cac4a9793071 (diff) | |
download | bluez-2be2b945e23ea9740aef79d1e719ce793413e129.tar.gz |
build: Fix build when sanitizer are enabled
This fixes various issues found when sanitizers are enabled.
Diffstat (limited to 'tools/test-runner.c')
-rw-r--r-- | tools/test-runner.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/test-runner.c b/tools/test-runner.c index eac120f4a..71cc0d2df 100644 --- a/tools/test-runner.c +++ b/tools/test-runner.c @@ -136,7 +136,7 @@ static void prepare_sandbox(void) { int i; - 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) { |