Check return type 02/264702/1
authorAbhimanyu Swami <abhimanyu1.s@samsung.com>
Tue, 28 Sep 2021 10:07:43 +0000 (15:37 +0530)
committerAbhimanyu Swami <abhimanyu1.s@samsung.com>
Tue, 28 Sep 2021 10:09:27 +0000 (15:39 +0530)
Change-Id: I7599b0a16f7140ddea3cb8add3f708f3053ea5e3
Signed-off-by: Abhimanyu Swami <abhimanyu1.s@samsung.com>
utils/MsgVMessage.cpp

index 07e6d82..48c9b1a 100755 (executable)
@@ -1465,7 +1465,7 @@ static inline char* __msgsvc_vmsg_translate_charset(char *src, int len)
                temp_size = (src_len+1) * sizeof(UChar);
                temp = (UChar *)malloc(temp_size);
                if (temp == NULL) {
-                       MSG_DEBUG("malloc() failed");
+                       MSG_ERR("malloc() failed");
                        return NULL;
                }
                conv = ucnv_open(enc, &err);
@@ -1477,7 +1477,7 @@ static inline char* __msgsvc_vmsg_translate_charset(char *src, int len)
                dest_size = temp_size*2;
                dest = (char *)malloc(dest_size);
                if (dest == NULL) {
-                       MSG_DEBUG("malloc() failed");
+                       MSG_ERR("malloc() failed");
                        return NULL;
                }
                conv = ucnv_open("UTF-8", &err);