[evolution-data-server] ECalBackendFile: Fix an uninitialized variable
- From: Matthew Barnes <mbarnes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution-data-server] ECalBackendFile: Fix an uninitialized variable
- Date: Fri, 16 Jul 2010 10:54:35 +0000 (UTC)
commit f8d3bcfc3dc9ae5d0ae9ea356b6befa7b7db3e7b
Author: Matthew Barnes <mbarnes redhat com>
Date: Fri Jul 16 06:53:06 2010 -0400
ECalBackendFile: Fix an uninitialized variable
calendar/backends/file/e-cal-backend-file.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/calendar/backends/file/e-cal-backend-file.c b/calendar/backends/file/e-cal-backend-file.c
index 3beac47..46091f1 100644
--- a/calendar/backends/file/e-cal-backend-file.c
+++ b/calendar/backends/file/e-cal-backend-file.c
@@ -675,7 +675,7 @@ uri_to_path (ECalBackend *backend)
ECalBackendFile *cbfile;
ECalBackendFilePrivate *priv;
ESource *source;
- gchar *filename;
+ gchar *filename = NULL;
cbfile = E_CAL_BACKEND_FILE (backend);
priv = cbfile->priv;
@@ -689,7 +689,7 @@ uri_to_path (ECalBackend *backend)
filename = g_strdup (property);
}
- if (filename != NULL) {
+ if (filename == NULL) {
icalcomponent_kind kind;
const gchar *user_data_dir;
const gchar *source_type_dir;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]