summaryrefslogtreecommitdiff
path: root/src/modules/compose
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/modules/compose
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/modules/compose')
-rw-r--r--src/modules/compose/compose.c4
1 files changed, 2 insertions, 2 deletions
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;
}
© All Rights Reserved