From cdd06c393d2c6dd0b5716a354aecc92c8457dc4d Mon Sep 17 00:00:00 2001 From: Milan Crha Date: Mon, 27 Jul 2009 20:55:30 +0200 Subject: Compiler warning fixes (as part of bug #424078) --- addressbook/conduit/address-conduit.c | 2 +- calendar/gui/itip-utils.c | 4 ++-- e-util/e-pilot-map.c | 4 ++-- plugins/publish-calendar/url-editor-dialog.c | 2 +- widgets/misc/e-attachment.c | 2 +- 5 files changed, 7 insertions(+), 7 deletions(-) diff --git a/addressbook/conduit/address-conduit.c b/addressbook/conduit/address-conduit.c index 67bba341e7..172d45ee30 100644 --- a/addressbook/conduit/address-conduit.c +++ b/addressbook/conduit/address-conduit.c @@ -184,7 +184,7 @@ e_pilot_add_category_if_possible(gchar *cat_to_add, struct CategoryAppInfo *cate retval = i; if (cat_to_add_len > 15) { - gchar tmpstr[16]; + gchar tmpstr[17]; strncpy(tmpstr, cat_to_add,16); tmpstr[16] = '\0'; /* Have to truncate the category name */ diff --git a/calendar/gui/itip-utils.c b/calendar/gui/itip-utils.c index 08389aff08..38fcb46bb7 100644 --- a/calendar/gui/itip-utils.c +++ b/calendar/gui/itip-utils.c @@ -1345,8 +1345,8 @@ reply_to_calendar_comp (ECalComponentItipMethod method, ECalComponent *comp = NULL; icalcomponent *top_level = NULL; GList *users = NULL; - gchar *from; - gchar *subject; + gchar *from = NULL; + gchar *subject = NULL; gchar *ical_string = NULL; gboolean retval = FALSE; diff --git a/e-util/e-pilot-map.c b/e-util/e-pilot-map.c index 660bdedc9a..83517197fd 100644 --- a/e-util/e-pilot-map.c +++ b/e-util/e-pilot-map.c @@ -56,8 +56,8 @@ static void real_e_pilot_map_insert (EPilotMap *map, guint32 pid, const gchar *uid, gboolean archived, gboolean touch) { gchar *new_uid; - guint32 *new_pid; - EPilotMapPidNode *pnode; + guint32 *new_pid = NULL; + EPilotMapPidNode *pnode = NULL; EPilotMapUidNode *unode; g_return_if_fail (map != NULL); diff --git a/plugins/publish-calendar/url-editor-dialog.c b/plugins/publish-calendar/url-editor-dialog.c index ee1f33932d..c4fad2aba9 100644 --- a/plugins/publish-calendar/url-editor-dialog.c +++ b/plugins/publish-calendar/url-editor-dialog.c @@ -42,7 +42,7 @@ create_uri (UrlEditorDialog *dialog) g_free (uri->location); uri->location = g_strdup (gtk_entry_get_text (GTK_ENTRY (dialog->server_entry))); } else { - const gchar *method; + const gchar *method = "file"; gchar *server, *file, *port, *username, *password; server = g_strdup (gtk_entry_get_text (GTK_ENTRY (dialog->server_entry))); diff --git a/widgets/misc/e-attachment.c b/widgets/misc/e-attachment.c index 3bf05ae579..e1afb45246 100644 --- a/widgets/misc/e-attachment.c +++ b/widgets/misc/e-attachment.c @@ -2250,7 +2250,7 @@ attachment_save_new_candidate (SaveContext *save_context) GFile *candidate; GFileInfo *file_info; EAttachment *attachment; - const gchar *display_name; + const gchar *display_name = NULL; gchar *basename; attachment = save_context->attachment; -- cgit v1.2.3