From adb7473aa58143cfcba554e3d8d35943f850f362 Mon Sep 17 00:00:00 2001 From: rbuj Date: Fri, 22 Oct 2021 14:28:49 +0200 Subject: keybindings: redundant initialization for 'p' --- capplets/keybindings/mate-keybinding-properties.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'capplets') diff --git a/capplets/keybindings/mate-keybinding-properties.c b/capplets/keybindings/mate-keybinding-properties.c index 44bdf9e3..b56dd0ac 100644 --- a/capplets/keybindings/mate-keybinding-properties.c +++ b/capplets/keybindings/mate-keybinding-properties.c @@ -861,7 +861,8 @@ static gboolean strv_contains (char **strv, char *str) { - char **p = strv; + char **p; + for (p = strv; *p; p++) if (strcmp (*p, str) == 0) return TRUE; -- cgit v1.2.1