[gnome-software/wip/ubuntu-xenial] Revert "Guard against self-setting origin"



commit c74f9299e3cbdb43d82e350de51842086f63572d
Author: Robert Ancell <robert ancell canonical com>
Date:   Wed Aug 17 10:06:25 2016 +1200

    Revert "Guard against self-setting origin"
    
    This reverts commit c9bcf92dc740ec5a31d108967f5d78cbf91b548e.
    
    A code inspection shows this issue should not occur and it wasn't accepted upstream.

 src/gs-app.c |    7 ++-----
 1 files changed, 2 insertions(+), 5 deletions(-)
---
diff --git a/src/gs-app.c b/src/gs-app.c
index 24fb75c..23aece9 100644
--- a/src/gs-app.c
+++ b/src/gs-app.c
@@ -1574,11 +1574,8 @@ void
 gs_app_set_origin (GsApp *app, const gchar *origin)
 {
        g_return_if_fail (GS_IS_APP (app));
-
-       if (origin != app->origin) {
-               g_free (app->origin);
-               app->origin = g_strdup (origin);
-       }
+       g_free (app->origin);
+       app->origin = g_strdup (origin);
 }
 
 /**


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