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/shapes/shapes.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/modules/shapes') diff --git a/src/modules/shapes/shapes.c b/src/modules/shapes/shapes.c index 8479c71..a746f77 100644 --- a/src/modules/shapes/shapes.c +++ b/src/modules/shapes/shapes.c @@ -389,7 +389,7 @@ static int shapes_setup(const til_settings_t *settings, til_setting_t **res_sett if (r) return r; - if (strcmp(pinch, "0")) { + if (strcasecmp(pinch, "0")) { r = til_settings_get_and_describe_value(settings, &(til_setting_desc_t){ .name = "Pinch spin factor", -- cgit v1.2.3