[evolution-activesync] ecal: avoid C warning
- From: Patrick Ohly <pohly src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution-activesync] ecal: avoid C warning
- Date: Mon, 14 Jul 2014 14:22:55 +0000 (UTC)
commit f409c8790444f1c455ca7fc3187d18f2c92104b1
Author: Patrick Ohly <patrick ohly intel com>
Date: Mon Jul 14 16:12:37 2014 +0200
ecal: avoid C warning
Don't declare variables inline.
eas-daemon/libeas/eas-cal-info-translator.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/eas-daemon/libeas/eas-cal-info-translator.c b/eas-daemon/libeas/eas-cal-info-translator.c
index 0dd75a0..1e01451 100644
--- a/eas-daemon/libeas/eas-cal-info-translator.c
+++ b/eas-daemon/libeas/eas-cal-info-translator.c
@@ -2271,6 +2271,7 @@ static void _ical2eas_process_vevent (icalcomponent* vevent, xmlNodePtr appData,
xmlNodePtr attendees = NULL;
//xmlNodePtr icalExtns = NULL;
struct icaltimetype startTime, endTime;
+ icalproperty* prop;
// Should be set when iterating over properties, but better don't
// rely on it and initialize upfront before checking for "all day"
@@ -2278,7 +2279,6 @@ static void _ical2eas_process_vevent (icalcomponent* vevent, xmlNodePtr appData,
memset (&startTime, 0, sizeof (startTime));
memset (&endTime, 0, sizeof (endTime));
- icalproperty* prop;
for (prop = icalcomponent_get_first_property (vevent, ICAL_ANY_PROPERTY);
prop;
prop = icalcomponent_get_next_property (vevent, ICAL_ANY_PROPERTY)) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]