diff --git a/src/backends/meta-input-mapper.c b/src/backends/meta-input-mapper.c index 013c2a427..2be6cc65b 100644 --- a/src/backends/meta-input-mapper.c +++ b/src/backends/meta-input-mapper.c @@ -249,12 +249,12 @@ match_edid (MetaMapperInputInfo *input, } else { + int i; char **split; - int i = 0; split = g_strsplit (meta_monitor_get_product (monitor), " ", -1); - while (split[i]) + for (i = 0; split[i]; i++) { if (strcasestr (dev_name, split[i]) != NULL) {