From 20da4c6319acef63c768d7e1cf7c108a1e36fc69 Mon Sep 17 00:00:00 2001 From: Pat Date: Thu, 19 Dec 2024 13:50:19 +0000 Subject: [PATCH] kvlist: make lookups case-insensitive (#55) * kvlist: make lookups case-insensitive Signed-off-by: Patrick Stephens --------- Signed-off-by: Patrick Stephens --- src/cfl_kvlist.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cfl_kvlist.c b/src/cfl_kvlist.c index 12c7711..4ffc5ea 100644 --- a/src/cfl_kvlist.c +++ b/src/cfl_kvlist.c @@ -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; } }