Skip to content

Commit

Permalink
kvlist: make lookups case-insensitive
Browse files Browse the repository at this point in the history
Signed-off-by: Patrick Stephens <[email protected]>
  • Loading branch information
patrick-stephens committed Dec 19, 2024
1 parent 02e2e81 commit 30a89bf
Showing 1 changed file with 1 addition and 1 deletion.
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

0 comments on commit 30a89bf

Please sign in to comment.