summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordunc <[email protected]>2020-01-08 10:01:22 -0600
committermonsta <[email protected]>2020-02-13 12:09:33 +0300
commit6e18b71bca8e46311e8e27f1ff7ded6f40c5413b (patch)
tree4fbdcdb06c42d6616678f813b84a66292f1f2bf0
parent550a034a2222d22fea349171e5ad4693e4249503 (diff)
downloadmate-applets-6e18b71bca8e46311e8e27f1ff7ded6f40c5413b.tar.bz2
mate-applets-6e18b71bca8e46311e8e27f1ff7ded6f40c5413b.tar.xz
Initialize "surface" before testing its value to avoid a crash.
-rw-r--r--accessx-status/applet.c2
1 files changed, 1 insertions, 1 deletions
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;