Fix build error accepted/tizen/mobile/20150604.122530 submit/tizen/20150602.020843
authorSung-jae Park <nicesj.park@samsung.com>
Mon, 1 Jun 2015 12:11:38 +0000 (21:11 +0900)
committerSung-jae Park <nicesj.park@samsung.com>
Mon, 1 Jun 2015 12:11:38 +0000 (21:11 +0900)
Change-Id: If635a63719efe4656db532f92f2551d677d41d5f

widget_viewer_evas/src/widget_viewer_evas.c

index 2b9dd0b..e687153 100644 (file)
@@ -422,7 +422,7 @@ static void append_gbar_dirty_object_list(struct widget_data *data, int idx);
 static void __widget_event_widget_updated(struct widget_data *data);
 static void __widget_event_gbar_updated(struct widget_data *data);
 
-static const char *get_preview_image(struct widget_data *data, widget_size_type_e type)
+static char *get_preview_image(struct widget_data *data, widget_size_type_e type)
 {
        Eina_List *l;
        struct preview_info *info;
@@ -430,7 +430,7 @@ static const char *get_preview_image(struct widget_data *data, widget_size_type_
 
        EINA_LIST_FOREACH(data->preview_list, l, info) {
                if (info->type == type) {
-                       preivew = strdup(info->preview);
+                       preview = strdup(info->preview);
                        if (!preview) {
                                ErrPrint("strdup: %d\n", errno);
                        }