From 1491e196f3d05152fab127eb9cff3146a68a20a8 Mon Sep 17 00:00:00 2001 From: Mikael Magnusson Date: Tue, 28 Oct 2014 05:11:17 +0100 Subject: [PATCH] Initialize some stuff to 0 before taking their address --- openbox/config.c | 2 +- openbox/mouse.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/openbox/config.c b/openbox/config.c index 1f405e51..dad5d1bf 100644 --- a/openbox/config.c +++ b/openbox/config.c @@ -923,7 +923,7 @@ static void parse_dock(xmlNodePtr node, gpointer d) config_dock_show_delay = obt_xml_node_int(n); if ((n = obt_xml_find_node(node, "moveButton"))) { gchar *str = obt_xml_node_string(n); - guint b, s; + guint b = 0, s = 0; if (translate_button(str, &s, &b)) { config_dock_app_move_button = b; config_dock_app_move_modifiers = s; diff --git a/openbox/mouse.c b/openbox/mouse.c index 2f0c8f59..4da22f3c 100644 --- a/openbox/mouse.c +++ b/openbox/mouse.c @@ -372,7 +372,7 @@ gboolean mouse_event(ObClient *client, XEvent *e) gboolean mouse_bind(const gchar *buttonstr, ObFrameContext context, ObMouseAction mact, ObActionsAct *action) { - guint state, button; + guint state = 0, button = 0; ObMouseBinding *b; GSList *it; -- 2.39.2