[glib: 1/7] gdbusprivate: Simplify some variable initialisations
- From: Sebastian Dröge <sdroege src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib: 1/7] gdbusprivate: Simplify some variable initialisations
- Date: Tue, 9 Mar 2021 12:49:52 +0000 (UTC)
commit ea1935803984398f6b5aeda23c75e1eb472fd543
Author: Philip Withnall <pwithnall endlessos org>
Date: Wed Feb 24 11:36:34 2021 +0000
gdbusprivate: Simplify some variable initialisations
Signed-off-by: Philip Withnall <pwithnall endlessos org>
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,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]