diff options
author | David King <amigadave@amigadave.com> | 2015-02-09 15:46:33 +0000 |
---|---|---|
committer | David King <amigadave@amigadave.com> | 2015-02-09 22:35:45 +0000 |
commit | ce89be151607f8d254fd26056a44bca84bc4de2b (patch) | |
tree | 25d4fa857714c4529e556b8d61e3783f55a96618 /libyelp | |
parent | a36c11e5920e84950f6f07b93dbbd1560bfe61eb (diff) | |
download | yelp-ce89be151607f8d254fd26056a44bca84bc4de2b.tar.gz |
Fix uninitialized variable warnings
Diffstat (limited to 'libyelp')
-rw-r--r-- | libyelp/yelp-document.c | 4 | ||||
-rw-r--r-- | libyelp/yelp-view.c | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/libyelp/yelp-document.c b/libyelp/yelp-document.c index 82973e0e..6ff004a0 100644 --- a/libyelp/yelp-document.c +++ b/libyelp/yelp-document.c @@ -1349,7 +1349,7 @@ request_idle_contents (Request *request) YelpDocument *document; YelpDocumentPriv *priv; YelpDocumentCallback callback = NULL; - gpointer user_data = user_data; + gpointer user_data; g_assert (request != NULL && YELP_IS_DOCUMENT (request->document)); @@ -1416,7 +1416,7 @@ request_idle_error (Request *request) YelpDocumentPriv *priv; YelpDocumentCallback callback = NULL; GError *error = NULL; - gpointer user_data = user_data; + gpointer user_data; g_assert (request != NULL && YELP_IS_DOCUMENT (request->document)); diff --git a/libyelp/yelp-view.c b/libyelp/yelp-view.c index 71106eec..f857a463 100644 --- a/libyelp/yelp-view.c +++ b/libyelp/yelp-view.c @@ -773,7 +773,7 @@ view_install_uri (YelpView *view, const gchar *uri) { GDBusConnection *connection; - GError *error; + GError *error = NULL; gboolean help = FALSE, ghelp = FALSE; GVariantBuilder *strv; YelpInstallInfo *info; @@ -796,7 +796,7 @@ view_install_uri (YelpView *view, pkg = (gchar *) uri + 8; } - connection = g_bus_get_sync (G_BUS_TYPE_SESSION, NULL, NULL); + connection = g_bus_get_sync (G_BUS_TYPE_SESSION, NULL, &error); if (connection == NULL) { g_warning ("Unable to connect to dbus: %s", error->message); g_error_free (error); |