From 990127fe11f556ae2039244e3687ff01dc8636e2 Mon Sep 17 00:00:00 2001 From: Alexander Larsson Date: Tue, 26 Apr 2016 12:09:28 +0200 Subject: system-helper: Use g_strcmp0 to simplify some code Pointed out by cosimo --- system-helper/xdg-app-system-helper.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'system-helper') diff --git a/system-helper/xdg-app-system-helper.c b/system-helper/xdg-app-system-helper.c index 21e1317..da33f6c 100644 --- a/system-helper/xdg-app-system-helper.c +++ b/system-helper/xdg-app-system-helper.c @@ -86,7 +86,7 @@ handle_deploy (XdgAppSystemHelper *object, } real_origin = xdg_app_dir_get_origin (system, arg_ref, NULL, NULL); - if (real_origin == NULL || strcmp (real_origin, arg_origin) != 0) + if (g_strcmp0 (real_origin, arg_origin) != 0) { g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "Wrong origin %s for update", arg_origin); -- cgit v1.2.1