summaryrefslogtreecommitdiff
path: root/system-helper/xdg-app-system-helper.c
diff options
context:
space:
mode:
Diffstat (limited to 'system-helper/xdg-app-system-helper.c')
-rw-r--r--system-helper/xdg-app-system-helper.c2
1 files changed, 1 insertions, 1 deletions
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);