[gnome-software] Fix compile warning about use of strcmp



commit 6c68a8fc071e0c89d3cf2defcd710dd92f5232d7
Author: Robert Ancell <robert ancell canonical com>
Date:   Thu Oct 27 10:50:05 2016 +1300

    Fix compile warning about use of strcmp

 src/plugins/gs-plugin-snap.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/plugins/gs-plugin-snap.c b/src/plugins/gs-plugin-snap.c
index ec5c51d..3882b8c 100644
--- a/src/plugins/gs-plugin-snap.c
+++ b/src/plugins/gs-plugin-snap.c
@@ -415,7 +415,7 @@ is_graphical (GsApp *app, GCancellable *cancellable)
                if (interface == NULL)
                        continue;
 
-               if (strcmp (interface, "unity7") == 0 || strcmp (interface, "x11") == 0 || strcmp (interface, 
"mir") == 0)
+               if (g_strcmp0 (interface, "unity7") == 0 || g_strcmp0 (interface, "x11") == 0 || g_strcmp0 
(interface, "mir") == 0)
                        return TRUE;
        }
 


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