From 6e300be5b8b97367b709d2aae7d127cb53bc3bd4 Mon Sep 17 00:00:00 2001 From: Sunghyun Kwon Date: Mon, 20 Jul 2015 16:39:33 +0900 Subject: [PATCH] Fixed the bug for tizen 3.0 Change-Id: I63dcfaf01e0584389578a981185e5896e8a7abd0 --- email-daemon/main.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/email-daemon/main.c b/email-daemon/main.c index 36cb65c..f75d62d 100755 --- a/email-daemon/main.c +++ b/email-daemon/main.c @@ -3820,8 +3820,10 @@ void stb_get_user_name(HIPC_API a_hAPI) if (!emipc_add_parameter(a_hAPI, ePARAMETER_OUT, &err, sizeof(int))) EM_DEBUG_EXCEPTION("emipc_add_parameter failed"); - if (!emipc_add_parameter(a_hAPI, ePARAMETER_OUT, user_name, EM_SAFE_STRLEN(user_name) + 1)) - EM_DEBUG_EXCEPTION("emipc_add_parameter failed"); + if (user_name) { + if (!emipc_add_parameter(a_hAPI, ePARAMETER_OUT, user_name, EM_SAFE_STRLEN(user_name) + 1)) + EM_DEBUG_EXCEPTION("emipc_add_parameter failed"); + } } if (!emipc_execute_stub_api(a_hAPI)) -- 2.7.4