summaryrefslogtreecommitdiff
path: root/src/til_settings.c
diff options
context:
space:
mode:
authorVito Caputo <vcaputo@pengaru.com>2022-05-25 13:15:00 -0700
committerVito Caputo <vcaputo@pengaru.com>2022-05-25 13:15:00 -0700
commit9b6136a732114949be57d42ce358f7b3cc2f5bbf (patch)
tree151634aa9577dc9838ac7516dfa8e54b91c2be68 /src/til_settings.c
parent3e3faa57e22610fa03050089b0e15c9df7fe832e (diff)
*: normalize on all case-insensitive comparisons
I don't think rototiller is an appropriate place for being so uncooperative, if someone gets the case wrong anywhere just make it work. We should avoid making different things so subtly different that case alone is the distinction anyways, so I don't see this creating any future namespace collision problems.
Diffstat (limited to 'src/til_settings.c')
-rw-r--r--src/til_settings.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/til_settings.c b/src/til_settings.c
index 35bb85c..1d01d8e 100644
--- a/src/til_settings.c
+++ b/src/til_settings.c
@@ -146,7 +146,7 @@ const char * til_settings_get_value(const til_settings_t *settings, const char *
assert(key);
for (int i = 0; i < settings->num; i++) {
- if (!strcmp(key, settings->settings[i]->key)) {
+ if (!strcasecmp(key, settings->settings[i]->key)) {
if (res_setting)
*res_setting = settings->settings[i];
© All Rights Reserved