Fixed the bug for tizen 3.0 50/44250/1 accepted/tizen/mobile/20150720.122113 accepted/tizen/tv/20150720.122212 accepted/tizen/wearable/20150720.122301 submit/tizen/20150720.074753
authorSunghyun Kwon <sh0701.kwon@samsung.com>
Mon, 20 Jul 2015 07:39:33 +0000 (16:39 +0900)
committerSunghyun Kwon <sh0701.kwon@samsung.com>
Mon, 20 Jul 2015 07:39:33 +0000 (16:39 +0900)
Change-Id: I63dcfaf01e0584389578a981185e5896e8a7abd0

email-daemon/main.c

index 36cb65c..f75d62d 100755 (executable)
@@ -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))