Fix coverity issue
[platform/core/api/image-util.git] / test / image_util_test.c
index c593fad..d75077e 100755 (executable)
@@ -504,7 +504,7 @@ static void interpret_set_image_cmd(char *cmd)
                }
        } else if (g_menu_set_image_state == CURRENT_STATE_SET_IMAGE_PATH) {
                IMAGE_UTIL_SAFE_FREE(g_path);
-               g_path = (char *)g_malloc(MAX_STRING_LEN * sizeof(char *));
+               g_path = (char *)g_malloc(MAX_STRING_LEN * sizeof(char));
                if (g_path == NULL) {
                        g_printf("memory allocation fail. \n");
                        return;