summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordunc <[email protected]>2020-01-08 10:01:22 -0600
committerZenWalker <[email protected]>2020-01-09 10:39:51 +0100
commit42022afd3340fc97b8c0c8866f2cd6b1355dee34 (patch)
tree238eb076c3172a2489cd40aae538024eb8029421
parentd3cae6249d156e847176d49897a49ca8a0a0c094 (diff)
downloadmate-applets-42022afd3340fc97b8c0c8866f2cd6b1355dee34.tar.bz2
mate-applets-42022afd3340fc97b8c0c8866f2cd6b1355dee34.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;