Initialize some stuff to 0 before taking their address
This commit is contained in:
parent
0f705cfddb
commit
1491e196f3
2 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue