From f586ff0e6382d3a509c587a28f302690519e2339 Mon Sep 17 00:00:00 2001 From: Stefano Karapetsas Date: Fri, 24 Jan 2014 16:59:12 +0100 Subject: keyboard: Fix segfault Var may be set as constant value but freed later. --- capplets/keyboard/mate-keyboard-properties-xkb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'capplets') diff --git a/capplets/keyboard/mate-keyboard-properties-xkb.c b/capplets/keyboard/mate-keyboard-properties-xkb.c index c77459e8..4f795719 100644 --- a/capplets/keyboard/mate-keyboard-properties-xkb.c +++ b/capplets/keyboard/mate-keyboard-properties-xkb.c @@ -70,7 +70,7 @@ set_model_text (GtkWidget * picker, gchar * value) if (model == NULL) { model = g_strdup(initial_config.model); if (model == NULL) - model = ""; + model = g_strdup(""); } g_snprintf (ci->name, sizeof (ci->name), "%s", model); -- cgit v1.2.1