Fixed Svace issues 91/199891/3 accepted/tizen/unified/20190218.064022 submit/tizen/20190216.111859
authorkamaljeet <kamal.jc@samsung.com>
Fri, 15 Feb 2019 08:32:03 +0000 (14:02 +0530)
committerrandeep singh <randeep.s@samsung.com>
Fri, 15 Feb 2019 14:23:39 +0000 (14:23 +0000)
Change-Id: I571b7f610acae42e7481289dd07983bc2bf831c9
Signed-off-by: kamaljeet <kamal.jc@samsung.com>
test/testapp-mail.c

index 9d4002f..8bb2b8f 100644 (file)
@@ -2190,7 +2190,10 @@ static gboolean testapp_test_add_mail_to_search_result_box()
                        testapp_print("Invalid input. ");
 
                attachment_data = malloc(sizeof(email_attachment_data_t));
-
+               if (attachment_data == NULL) {
+                       testapp_print("malloc failed");
+                       return TRUE;
+               }
                attachment_data->attachment_name  = strdup(arg);
 
                memset(arg, 0x00, 50);