From a082fc8a4e4a434bdada159869e51ca133d5e83a Mon Sep 17 00:00:00 2001 From: Quinn Date: Thu, 22 Jan 2026 15:39:22 +0100 Subject: [PATCH] fix: Using `0` instead of `NULL` when assigning to `tmp`. This will likely lead to confusing usage of `tmp`. --- src/io/conf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/io/conf.c b/src/io/conf.c index 268f8c6..517fe03 100644 --- a/src/io/conf.c +++ b/src/io/conf.c @@ -32,7 +32,7 @@ int conf_getkeyval(const char *restrict buf, int i = 0; for (; i < klen && !tmp; i++) { tmp = strmat(buf, keys[i]); - tmp = keys[i][buf - tmp] ? tmp : 0; + tmp = keys[i][buf - tmp] ? tmp : NULL; } if (!tmp || *tmp != '=')