mirror of
https://github.com/flatpak/flatpak.git
synced 2026-10-23 16:09:26 -04:00
system-helper: Use g_strcmp0 to simplify some code
Pointed out by cosimo
This commit is contained in:
1 parent
913bae4726
commit
990127fe11
1 file changed
+1
-1
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user