gdbusprivate: Simplify some variable initialisations

Signed-off-by: Philip Withnall <pwithnall@endlessos.org>
This commit is contained in:
Philip Withnall 2021-02-24 11:36:34 +00:00
parent 4e4b35208a
commit ea19358039

View File

@ -2470,11 +2470,10 @@ _g_dbus_get_machine_id (GError **error)
return res; return res;
#else #else
gchar *ret; gchar *ret = NULL;
GError *first_error; GError *first_error = NULL;
/* TODO: use PACKAGE_LOCALSTATEDIR ? */ /* TODO: use PACKAGE_LOCALSTATEDIR ? */
ret = NULL;
first_error = NULL;
if (!g_file_get_contents ("/var/lib/dbus/machine-id", if (!g_file_get_contents ("/var/lib/dbus/machine-id",
&ret, &ret,
NULL, NULL,