From d68a57d8bee6643b230b752b4588f66d89e51524 Mon Sep 17 00:00:00 2001 From: Marcel Holtmann Date: Fri, 3 Oct 2008 08:29:51 +0200 Subject: Fix uninitialized reply of multiple GetProperties methods --- network/connection.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'network') diff --git a/network/connection.c b/network/connection.c index 27aa2546..a8dd5689 100644 --- a/network/connection.c +++ b/network/connection.c @@ -453,6 +453,10 @@ static DBusMessage *connection_get_properties(DBusConnection *conn, const char *property; GSList *l; + reply = dbus_message_new_method_return(msg); + if (!reply) + return NULL; + dbus_message_iter_init_append(reply, &iter); dbus_message_iter_open_container(&iter, DBUS_TYPE_ARRAY, -- cgit