use g_try_malloc0 in util_removeQuotes
authorPhilippe Nunes <philippe.nunes@linux.intel.com>
Mon, 18 Mar 2013 17:11:23 +0000 (18:11 +0100)
committerwootak.jung <wootak.jung@samsung.com>
Sun, 24 Mar 2013 07:46:42 +0000 (16:46 +0900)
Change-Id: Iaec9310f6ce90cb1d024c25dcf43c3fc61fa8928

src/s_common.c

index 7af8819..0c60d87 100644 (file)
@@ -186,7 +186,7 @@ char* util_removeQuotes(void *data)
                return NULL;
        }
 
-       tmp = g_try_malloc(data_len - 1);
+       tmp = g_try_malloc0(data_len - 1);
        memcpy(tmp, data + 1, data_len - 2);
        dbg("tmp: [%s]", tmp);