diff options
author | Kalev Lember <klember@redhat.com> | 2015-10-20 11:53:42 +0200 |
---|---|---|
committer | Kalev Lember <klember@redhat.com> | 2015-10-20 13:39:41 +0200 |
commit | 753c48abe68866eb196e8ec70fc90ba9cc3b3dcc (patch) | |
tree | 76831d9fa00e942c017cfc439b1d1752d90daa92 | |
parent | af8a40c2de0f1be5ca40ac851858f2fe8798a4ba (diff) | |
download | gnome-settings-daemon-753c48abe68866eb196e8ec70fc90ba9cc3b3dcc.tar.gz |
common: Fix a compiler warning
gsd-input-helper.c: In function ‘trackball_is_present’:
gsd-input-helper.c:256:18: warning: ‘retval’ may be used uninitialized in this function [-Wmaybe-uninitialized]
https://bugzilla.gnome.org/show_bug.cgi?id=756859
-rw-r--r-- | plugins/common/gsd-input-helper.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/common/gsd-input-helper.c b/plugins/common/gsd-input-helper.c index 7396d380..e3fe2d89 100644 --- a/plugins/common/gsd-input-helper.c +++ b/plugins/common/gsd-input-helper.c @@ -253,7 +253,7 @@ mouse_is_present (void) gboolean trackball_is_present (void) { - gboolean retval; + gboolean retval = FALSE; GList *l, *mice = gsd_device_manager_list_devices (gsd_device_manager_get (), GSD_DEVICE_TYPE_MOUSE); if (mice == NULL) |