[gnome-software] trivial: Fix a couple of typos spotted by clang



commit cbeb7ad00245119b819b6b8c8ab991ad97ad6dc5
Author: Richard Hughes <richard hughsie com>
Date:   Mon Jul 18 10:09:45 2016 +0100

    trivial: Fix a couple of typos spotted by clang

 src/gs-auth-dialog.c    |    2 --
 src/gs-shell-overview.c |    2 +-
 2 files changed, 1 insertions(+), 3 deletions(-)
---
diff --git a/src/gs-auth-dialog.c b/src/gs-auth-dialog.c
index 55785a7..eb6fb3c 100644
--- a/src/gs-auth-dialog.c
+++ b/src/gs-auth-dialog.c
@@ -129,8 +129,6 @@ gs_auth_dialog_authenticate_cb (GObject *source,
                        return;
                }
 
-               url = gs_utils_get_error_value (error);
-
                /* have we been given a link */
                url = gs_utils_get_error_value (error);
                if (url != NULL) {
diff --git a/src/gs-shell-overview.c b/src/gs-shell-overview.c
index 32df57e..7134c00 100644
--- a/src/gs-shell-overview.c
+++ b/src/gs-shell-overview.c
@@ -539,7 +539,7 @@ gs_shell_overview_load (GsShellOverview *self)
                /* load all the categories */
                for (i = 0; i < cats_random->len && i < MAX_CATS; i++) {
                        LoadData *load_data;
-                       const gchar *cat_id = g_ptr_array_index (cats_random, 0);
+                       const gchar *cat_id;
                        g_autoptr(GsCategory) category = NULL;
                        g_autoptr(GsCategory) featured_category = NULL;
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]