Fix use of uninitialized variables

If mutter is going to -Werror by default, then it can play footloose
and fancy free with this sorta stuff.

https://bugzilla.gnome.org/show_bug.cgi?id=698179
This commit is contained in:
Stef Walter 2013-04-17 10:04:49 +02:00
parent ad61676af0
commit 859d231129

View File

@ -1708,12 +1708,13 @@ meta_prefs_set_num_workspaces (int n_workspaces)
{ {
MetaBasePreference *pref; MetaBasePreference *pref;
find_pref (preferences_int, sizeof(MetaIntPreference), if (find_pref (preferences_int, sizeof(MetaIntPreference),
KEY_NUM_WORKSPACES, &pref); KEY_NUM_WORKSPACES, &pref))
{
g_settings_set_int (SETTINGS (pref->schema), g_settings_set_int (SETTINGS (pref->schema),
KEY_NUM_WORKSPACES, KEY_NUM_WORKSPACES,
n_workspaces); n_workspaces);
}
} }
static GHashTable *key_bindings; static GHashTable *key_bindings;
@ -2216,9 +2217,11 @@ meta_prefs_set_no_tab_popup (gboolean whether)
{ {
MetaBasePreference *pref; MetaBasePreference *pref;
find_pref (preferences_bool, sizeof(MetaBoolPreference), if (find_pref (preferences_bool, sizeof(MetaBoolPreference),
KEY_NO_TAB_POPUP, &pref); KEY_NO_TAB_POPUP, &pref))
g_settings_set_boolean (SETTINGS (pref->schema), KEY_NO_TAB_POPUP, whether); {
g_settings_set_boolean (SETTINGS (pref->schema), KEY_NO_TAB_POPUP, whether);
}
} }
int int