summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--openbox/config.c2
-rw-r--r--openbox/mouse.c2
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;