From ea1935803984398f6b5aeda23c75e1eb472fd543 Mon Sep 17 00:00:00 2001 From: Philip Withnall Date: Wed, 24 Feb 2021 11:36:34 +0000 Subject: [PATCH] gdbusprivate: Simplify some variable initialisations Signed-off-by: Philip Withnall --- gio/gdbusprivate.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/gio/gdbusprivate.c b/gio/gdbusprivate.c index 4e42c1a4d..70c098582 100644 --- a/gio/gdbusprivate.c +++ b/gio/gdbusprivate.c @@ -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,