From: Hyunho Kang Date: Mon, 13 Jun 2016 01:30:00 +0000 (+0900) Subject: Fix null pointer dereference X-Git-Tag: accepted/tizen/ivi/20160614.103342^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=1365c8686301659972d0903be61e8c88da2772be;p=platform%2Fcore%2Fappfw%2Fmessage-port.git Fix null pointer dereference Change-Id: I4373372025b417f03b00d37114a89c4829cd794d Signed-off-by: Hyunho Kang --- diff --git a/src/message-port.c b/src/message-port.c index 0e37dd8..a43ba36 100755 --- a/src/message-port.c +++ b/src/message-port.c @@ -1320,7 +1320,6 @@ static int __message_port_send_message(const char *remote_appid, const char *rem int ret = MESSAGEPORT_ERROR_NONE; GUnixFDList *fd_list = NULL; - GError *error = NULL; int len = 0; bundle_raw *raw = NULL; @@ -1383,7 +1382,7 @@ static int __message_port_send_message(const char *remote_appid, const char *rem fd_list = g_unix_fd_list_new(); g_unix_fd_list_append(fd_list, sock_pair[SOCK_PAIR_RECEIVER], &err); if (err != NULL) { - _LOGE("g_unix_fd_list_append [%s]", error->message); + _LOGE("g_unix_fd_list_append [%s]", err->message); ret = MESSAGEPORT_ERROR_IO_ERROR; g_error_free(err); goto out;