[gnome-software] trivial: Correctly copy metadata when subsuming an GsApp



commit 62e36ef970a67756d376aed0cf7677fdbe2a378a
Author: Richard Hughes <richard hughsie com>
Date:   Thu Nov 14 12:50:35 2013 +0000

    trivial: Correctly copy metadata when subsuming an GsApp

 src/gs-app.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/gs-app.c b/src/gs-app.c
index 71e6f3c..f2e26b4 100644
--- a/src/gs-app.c
+++ b/src/gs-app.c
@@ -333,7 +333,7 @@ gs_app_subsume (GsApp *app, GsApp *other)
        keys = g_hash_table_get_keys (priv2->metadata);
        for (l = keys; l != NULL; l = l->next) {
                tmp = g_hash_table_lookup (priv->metadata, l->data);
-               if (tmp != NULL)
+               if (tmp == NULL)
                        continue;
                tmp = g_hash_table_lookup (priv2->metadata, l->data);
                gs_app_set_metadata (other, l->data, tmp);


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