mirror of
https://github.com/thepigeongenerator/mcaselector-lite
synced 2026-02-07 23:28:09 +01:00
fix: Using 0 instead of NULL when assigning to tmp.
This will likely lead to confusing usage of `tmp`.
This commit is contained in:
@@ -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 != '=')
|
||||
|
||||
Reference in New Issue
Block a user