From 42022afd3340fc97b8c0c8866f2cd6b1355dee34 Mon Sep 17 00:00:00 2001 From: dunc Date: Wed, 8 Jan 2020 10:01:22 -0600 Subject: Initialize "surface" before testing its value to avoid a crash. --- accessx-status/applet.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'accessx-status') diff --git a/accessx-status/applet.c b/accessx-status/applet.c index 697f5e36..6dd658db 100644 --- a/accessx-status/applet.c +++ b/accessx-status/applet.c @@ -673,7 +673,7 @@ static cairo_surface_t* accessx_status_applet_mousekeys_image(AccessxStatusApple static void accessx_status_applet_set_state_icon (AccessxStatusApplet* sapplet, ModifierStruct* modifier, GtkStateFlags state) { - cairo_surface_t* surface; + cairo_surface_t* surface = NULL; GtkIconTheme *icon_theme; gint icon_size, icon_scale; gchar *icon_name = NULL; -- cgit v1.2.1