diff options
author | Alexander Larsson <alexl@redhat.com> | 2016-04-26 12:09:28 +0200 |
---|---|---|
committer | Alexander Larsson <alexl@redhat.com> | 2016-04-26 12:09:28 +0200 |
commit | 990127fe11f556ae2039244e3687ff01dc8636e2 (patch) | |
tree | 3ec9e1a905eb6d99f1d8c000ca4ec4ed999f202a /system-helper | |
parent | 913bae472602f907a66bc8a51d7e92ed49aebdbc (diff) | |
download | xdg-app-990127fe11f556ae2039244e3687ff01dc8636e2.tar.gz |
system-helper: Use g_strcmp0 to simplify some code
Pointed out by cosimo
Diffstat (limited to 'system-helper')
-rw-r--r-- | system-helper/xdg-app-system-helper.c | 2 |
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); |