mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-04-16 20:38:48 +02:00
gdbusprivate: Simplify some variable initialisations
Signed-off-by: Philip Withnall <pwithnall@endlessos.org>
This commit is contained in:
parent
4e4b35208a
commit
ea19358039
@ -2470,11 +2470,10 @@ _g_dbus_get_machine_id (GError **error)
|
||||
|
||||
return res;
|
||||
#else
|
||||
gchar *ret;
|
||||
GError *first_error;
|
||||
gchar *ret = NULL;
|
||||
GError *first_error = NULL;
|
||||
|
||||
/* TODO: use PACKAGE_LOCALSTATEDIR ? */
|
||||
ret = NULL;
|
||||
first_error = NULL;
|
||||
if (!g_file_get_contents ("/var/lib/dbus/machine-id",
|
||||
&ret,
|
||||
NULL,
|
||||
|
Loading…
x
Reference in New Issue
Block a user