fix: Using 0 instead of NULL when assigning to tmp.

This will likely lead to confusing usage of `tmp`.
This commit is contained in:
2026-01-22 15:39:22 +01:00
parent 94f4688ba6
commit a082fc8a4e

View File

@@ -32,7 +32,7 @@ int conf_getkeyval(const char *restrict buf,
int i = 0; int i = 0;
for (; i < klen && !tmp; i++) { for (; i < klen && !tmp; i++) {
tmp = strmat(buf, keys[i]); tmp = strmat(buf, keys[i]);
tmp = keys[i][buf - tmp] ? tmp : 0; tmp = keys[i][buf - tmp] ? tmp : NULL;
} }
if (!tmp || *tmp != '=') if (!tmp || *tmp != '=')