From 1365c8686301659972d0903be61e8c88da2772be Mon Sep 17 00:00:00 2001 From: Hyunho Kang Date: Mon, 13 Jun 2016 10:30:00 +0900 Subject: [PATCH] Fix null pointer dereference Change-Id: I4373372025b417f03b00d37114a89c4829cd794d Signed-off-by: Hyunho Kang --- src/message-port.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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; -- 2.7.4