[evolution/kill-bonobo] Compiler warning fixes (as part of bug #424078)



commit cdd06c393d2c6dd0b5716a354aecc92c8457dc4d
Author: Milan Crha <mcrha redhat com>
Date:   Mon Jul 27 20:55:30 2009 +0200

    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 67bba34..172d45e 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 08389af..38fcb46 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 660bded..8351719 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 ee1f339..c4fad2a 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 3bf05ae..e1afb45 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;



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]