Skip to content

Commit

Permalink
tcti: no need to allocate an empty variant for zero params
Browse files Browse the repository at this point in the history
No need to allocate an empty variant variable if we don't pass
any input parameters. Just pass in NULL

Signed-off-by: Tadeusz Struk <tadeusz.struk@intel.com>
  • Loading branch information
tstruk committed Mar 18, 2021
1 parent 7d5a73d commit f0a0b80
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/tcti-tabrmd.c
Original file line number Diff line number Diff line change
Expand Up @@ -442,7 +442,7 @@ tcti_tabrmd_call_create_connection_sync_fdlist (TctiTabrmd *proxy,
GVariant *_ret;
_ret = g_dbus_proxy_call_with_unix_fd_list_sync (G_DBUS_PROXY (proxy),
"CreateConnection",
g_variant_new ("()"),
NULL,
G_DBUS_CALL_FLAGS_NONE,
-1,
NULL,
Expand Down

0 comments on commit f0a0b80

Please sign in to comment.