[evolution-ews] Fix possible uninitialized variable usage in ews-test-timezones.c
- From: Milan Crha <mcrha src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution-ews] Fix possible uninitialized variable usage in ews-test-timezones.c
- Date: Mon, 12 Dec 2016 15:25:41 +0000 (UTC)
commit 3df7ddc9d7f6dc57bf9cd6e211ccb8d2a343aac9
Author: Milan Crha <mcrha redhat com>
Date: Mon Dec 12 16:24:50 2016 +0100
Fix possible uninitialized variable usage in ews-test-timezones.c
tests/ews-test-timezones.c | 7 ++++++-
1 files changed, 6 insertions(+), 1 deletions(-)
---
diff --git a/tests/ews-test-timezones.c b/tests/ews-test-timezones.c
index 36f680f..1ac64b1 100644
--- a/tests/ews-test-timezones.c
+++ b/tests/ews-test-timezones.c
@@ -146,7 +146,7 @@ test_time_zones_sync (gconstpointer user_data)
UhmServer *local_server;
EwsTestData *etd = (gpointer) user_data;
EwsCalendarConvertData convert_data;
- EwsFolderId *calendar_fid;
+ EwsFolderId *calendar_fid = NULL;
gboolean includes_last_folder = FALSE;
gchar *old_sync_state = NULL;
gchar **tokens;
@@ -219,6 +219,11 @@ test_time_zones_sync (gconstpointer user_data)
}
}
+ if (!calendar_fid) {
+ g_printerr ("No calendar folder found\n");
+ goto exit;
+ }
+
convert_data.connection = etd->connection;
convert_data.default_zone = icaltimezone_get_utc_timezone ();
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]