summaryrefslogtreecommitdiffstats
path: root/src/config.h
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@tavianator.com>2023-05-08 14:18:37 -0400
committerTavian Barnes <tavianator@tavianator.com>2023-05-08 14:18:37 -0400
commit3f1822caed3dca731997c8739c19ee32e5caadc1 (patch)
tree49c84b1cd4119b7925ca4d4d82772fa834f4bf6e /src/config.h
parentc1b16b49988ecff17ae30978ea14798d95b80018 (diff)
downloadbfs-3f1822caed3dca731997c8739c19ee32e5caadc1.tar.xz
config: Hoist the assignment outside of BFS_UNINIT()
Diffstat (limited to 'src/config.h')
-rw-r--r--src/config.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/config.h b/src/config.h
index 5f54250..ed3f6ab 100644
--- a/src/config.h
+++ b/src/config.h
@@ -204,9 +204,9 @@
* Initialize a variable, unless sanitizers would detect uninitialized uses.
*/
#if __has_feature(memory_sanitizer)
-# define BFS_UNINIT(var, value) var = var
+# define BFS_UNINIT(var, value) var
#else
-# define BFS_UNINIT(var, value) var = value
+# define BFS_UNINIT(var, value) value
#endif
#endif // BFS_CONFIG_H