[gnome-software/wip/temp/ubuntu-xenial-rebased-corrected: 201/331] trivial: Fix the @LicenseRef-free string check



commit ddb68b9690aefe83584d20db525f48dff28f9004
Author: Richard Hughes <richard hughsie com>
Date:   Fri Apr 8 14:57:08 2016 +0100

    trivial: Fix the @LicenseRef-free string check

 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 9b64d41..636cfc5 100644
--- a/src/gs-app.c
+++ b/src/gs-app.c
@@ -1434,7 +1434,7 @@ gs_app_set_license (GsApp *app, GsAppQuality quality, const gchar *license)
                }
 
                /* free software, license unspecified */
-               if (g_str_has_prefix (tokens[i], "@LicenseRef-free") == 0) {
+               if (g_str_has_prefix (tokens[i], "@LicenseRef-free")) {
                        const gchar *url = "http://www.gnu.org/philosophy/free-sw.en.html";;
                        gchar *tmp;
 


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