From: sanghyeok.oh Date: Wed, 30 Nov 2016 09:43:21 +0000 (+0900) Subject: gdbus:add null check for error variable X-Git-Tag: accepted/tizen/common/20161212.185410~4 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=4d32716f7209d60c4a3ff56f18fb73d5ec755483;p=platform%2Fupstream%2Fglib.git gdbus:add null check for error variable Change-Id: Ib51dd62ebc066b9393ae7c59f2f63d3330a16518 Signed-off-by: sanghyeok.oh (cherry picked from commit 22aff71838c2aafc27196886fff317d146f749e1) --- diff --git a/gio/gdbusconnection.c b/gio/gdbusconnection.c index 92b2948..933a091 100755 --- a/gio/gdbusconnection.c +++ b/gio/gdbusconnection.c @@ -6319,6 +6319,8 @@ decode_method_reply (GDBusMessage *reply, case G_DBUS_MESSAGE_TYPE_ERROR: g_dbus_message_to_gerror (reply, error); + if (error == NULL || *error == NULL) + break; if ((*error)->code == G_DBUS_ERROR_NO_REPLY) { g_clear_error(error);