Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

kvlist: make lookups case-insensitive #55

Merged
merged 8 commits into from
Dec 19, 2024
2 changes: 1 addition & 1 deletion src/cfl_kvlist.c
Original file line number Diff line number Diff line change
Expand Up @@ -329,7 +329,7 @@ struct cfl_variant *cfl_kvlist_fetch_s(struct cfl_kvlist *list, char *key, size_
continue;
}

if (strncmp(pair->key, key, key_size) == 0) {
if (strncasecmp(pair->key, key, key_size) == 0) {
return pair->val;
}
}
Expand Down
Loading