From 6837cab1116e36aee225ea1bbf13a7f976b6056c Mon Sep 17 00:00:00 2001 From: jkjo92 Date: Wed, 8 Feb 2017 15:00:13 +0900 Subject: [PATCH] fix svace issues Change-Id: Ib0b044f34855eb83b4bc7392d132abb462cc01bd Signed-off-by: jkjo92 --- client/fido_uaf_client.c | 4 ---- server/fido_selection_ui_adaptor.c | 3 +-- test/Dummy_ASM_DBUS/dummy_asm_server.c | 3 +-- 3 files changed, 2 insertions(+), 8 deletions(-) mode change 100644 => 100755 server/fido_selection_ui_adaptor.c mode change 100644 => 100755 test/Dummy_ASM_DBUS/dummy_asm_server.c diff --git a/client/fido_uaf_client.c b/client/fido_uaf_client.c index 72471dc..8ed130d 100755 --- a/client/fido_uaf_client.c +++ b/client/fido_uaf_client.c @@ -92,10 +92,6 @@ _fido_uaf_process_operation_reply(GObject *object, GAsyncResult *res, gpointer u } _fido_process_cb_data_s *cb_data = (_fido_process_cb_data_s *)user_data; - if (cb_data == NULL) { - _ERR("Can not proceed since callback data is NULL"); - return; - } if (cb_data->cb == NULL) { _ERR("Can not proceed since callback data's cb part is NULL"); diff --git a/server/fido_selection_ui_adaptor.c b/server/fido_selection_ui_adaptor.c old mode 100644 new mode 100755 index 1a7cc94..a7fc435 --- a/server/fido_selection_ui_adaptor.c +++ b/server/fido_selection_ui_adaptor.c @@ -427,8 +427,7 @@ __get_proc_path_of_dbus_caller(GDBusMethodInvocation *invocation) connection = g_dbus_method_invocation_get_connection(invocation); if (connection == NULL) { - _ERR("Failed to open connection for the invocation [%s]", error->message); - g_error_free(error); + _ERR("Failed to open connection for the invocation"); return NULL; } diff --git a/test/Dummy_ASM_DBUS/dummy_asm_server.c b/test/Dummy_ASM_DBUS/dummy_asm_server.c old mode 100644 new mode 100755 index 183c25f..ad87871 --- a/test/Dummy_ASM_DBUS/dummy_asm_server.c +++ b/test/Dummy_ASM_DBUS/dummy_asm_server.c @@ -102,8 +102,7 @@ __get_proc_path_of_dbus_caller(GDBusMethodInvocation *invocation) connection = g_dbus_method_invocation_get_connection(invocation); if (connection == NULL) { - _ERR("Failed to open connection for the invocation [%s]", error->message); - g_error_free(error); + _ERR("Failed to open connection for the invocation"); return NULL; } -- 2.7.4