From 9b6136a732114949be57d42ce358f7b3cc2f5bbf Mon Sep 17 00:00:00 2001 From: Vito Caputo Date: Wed, 25 May 2022 13:15:00 -0700 Subject: *: 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. --- src/modules/compose/compose.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/modules/compose') diff --git a/src/modules/compose/compose.c b/src/modules/compose/compose.c index eb8cd48..dfe3794 100644 --- a/src/modules/compose/compose.c +++ b/src/modules/compose/compose.c @@ -302,14 +302,14 @@ static int compose_setup(const til_settings_t *settings, til_setting_t **res_set * going to let the user potentially compose with montage * or rtv as one of the layers. */ - if (!strcmp(layer, "compose")) { /* XXX: prevent infinite recursion */ + if (!strcasecmp(layer, "compose")) { /* XXX: prevent infinite recursion */ til_setup_free(&setup->til_setup); return -EINVAL; } for (i = 0; i < n_modules; i++) { - if (!strcmp(layer, modules[i]->name)) + if (!strcasecmp(layer, modules[i]->name)) break; } -- cgit v1.2.3