Initialize some stuff to 0 before taking their address

This commit is contained in:
Mikael Magnusson 2014-10-28 05:11:17 +01:00
parent 0f705cfddb
commit 1491e196f3
2 changed files with 2 additions and 2 deletions

View file

@ -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;

View file

@ -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;