all repos — openbox @ 1491e196f3d05152fab127eb9cff3146a68a20a8

openbox fork - make it a bit more like ryudo

Initialize some stuff to 0 before taking their address
Mikael Magnusson mikachu@gmail.com
commit

1491e196f3d05152fab127eb9cff3146a68a20a8

parent

0f705cfddba01db9e9317c567ecb652a486ec6cd

2 files changed, 2 insertions(+), 2 deletions(-)

jump to
M openbox/config.copenbox/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.copenbox/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;