Skip to content

Commit

Permalink
kvlist: make lookups case-insensitive (#55)
Browse files Browse the repository at this point in the history
* kvlist: make lookups case-insensitive

Signed-off-by: Patrick Stephens <[email protected]>

---------

Signed-off-by: Patrick Stephens <[email protected]>
  • Loading branch information
patrick-stephens authored Dec 19, 2024
1 parent a8dd62a commit 20da4c6
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 20da4c6

Please sign in to comment.