diff options
author | Milan Crha <mcrha@redhat.com> | 2011-09-30 21:39:57 +0800 |
---|---|---|
committer | Milan Crha <mcrha@redhat.com> | 2011-09-30 21:39:57 +0800 |
commit | 4c56856e05c6ab1468fe8ace4b73ac31b333990b (patch) | |
tree | 98304dd391494a7f9cc1aecebb99fe3b0f328377 /calendar/gui | |
parent | 2def4a73864c87c4dee25b04180c882e72a0fee1 (diff) | |
download | gsoc2013-evolution-4c56856e05c6ab1468fe8ace4b73ac31b333990b.tar.gz gsoc2013-evolution-4c56856e05c6ab1468fe8ace4b73ac31b333990b.tar.zst gsoc2013-evolution-4c56856e05c6ab1468fe8ace4b73ac31b333990b.zip |
Fix few 'may be used uninitialized' compiler warnings
Diffstat (limited to 'calendar/gui')
-rw-r--r-- | calendar/gui/dialogs/comp-editor.c | 4 | ||||
-rw-r--r-- | calendar/gui/e-day-view-main-item.c | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/calendar/gui/dialogs/comp-editor.c b/calendar/gui/dialogs/comp-editor.c index 9a60f6d382..9c463c66dc 100644 --- a/calendar/gui/dialogs/comp-editor.c +++ b/calendar/gui/dialogs/comp-editor.c @@ -3010,8 +3010,8 @@ attachment_loaded_cb (EAttachment *attachment, { GFileInfo *file_info; const gchar *display_name; - const gchar *new_name; const gchar *uid; + gchar *new_name; /* Prior to 2.27.2, attachment files were named: * @@ -3042,7 +3042,7 @@ attachment_loaded_cb (EAttachment *attachment, uid = g_object_get_data (G_OBJECT (attachment), "uid"); if (g_str_has_prefix (display_name, uid)) { - new_name = g_strdup (display_name+strlen(uid)+1); + new_name = g_strdup (display_name + strlen (uid) + 1); g_file_info_set_display_name (file_info, new_name); g_object_notify (G_OBJECT (attachment), "file-info"); g_free (new_name); diff --git a/calendar/gui/e-day-view-main-item.c b/calendar/gui/e-day-view-main-item.c index c379f2aecb..b6cdc967e7 100644 --- a/calendar/gui/e-day-view-main-item.c +++ b/calendar/gui/e-day-view-main-item.c @@ -185,7 +185,7 @@ day_view_main_item_draw_day_event (EDayViewMainItem *main_item, gint item_x, item_y, item_w, item_h, bar_y1, bar_y2; GdkColor bg_color; ECalComponent *comp; - gint num_icons, icon_x, icon_y, icon_x_inc = 0, icon_y_inc = 0; + gint num_icons, icon_x = 0, icon_y, icon_x_inc = 0, icon_y_inc = 0; gint max_icon_w, max_icon_h; gboolean draw_reminder_icon, draw_recurrence_icon, draw_timezone_icon, draw_meeting_icon; gboolean draw_attach_icon; |