aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--addressbook/conduit/address-conduit.c2
-rw-r--r--calendar/gui/itip-utils.c4
-rw-r--r--e-util/e-pilot-map.c4
-rw-r--r--plugins/publish-calendar/url-editor-dialog.c2
-rw-r--r--widgets/misc/e-attachment.c2
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;