From 30a89bf19fead453b21d358f043110a6929021dc Mon Sep 17 00:00:00 2001 From: Patrick Stephens Date: Thu, 19 Dec 2024 12:19:26 +0000 Subject: [PATCH] kvlist: make lookups case-insensitive 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; } }