Initialize some stuff to 0 before taking their address
Mikael Magnusson mikachu@gmail.com
2 files changed,
2 insertions(+),
2 deletions(-)
M
openbox/config.c
→
openbox/config.c
@@ -923,7 +923,7 @@ if ((n = obt_xml_find_node(node, "showDelay")))
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;
M
openbox/mouse.c
→
openbox/mouse.c
@@ -372,7 +372,7 @@
gboolean mouse_bind(const gchar *buttonstr, ObFrameContext context, ObMouseAction mact, ObActionsAct *action) { - guint state, button; + guint state = 0, button = 0; ObMouseBinding *b; GSList *it;