[asterisk-commits] pitel: branch 1.8 r284850 - /branches/1.8/res/res_calendar_ews.c
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Fri Sep 3 07:49:03 CDT 2010
Author: pitel
Date: Fri Sep 3 07:48:59 2010
New Revision: 284850
URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=284850
Log:
Fix for calendar categories and priorities according to ISO C90
Modified:
branches/1.8/res/res_calendar_ews.c
Modified: branches/1.8/res/res_calendar_ews.c
URL: http://svnview.digium.com/svn/asterisk/branches/1.8/res/res_calendar_ews.c?view=diff&rev=284850&r1=284849&r2=284850
==============================================================================
--- branches/1.8/res/res_calendar_ews.c (original)
+++ branches/1.8/res/res_calendar_ews.c Fri Sep 3 07:48:59 2010
@@ -544,6 +544,7 @@
.pvt = pvt,
};
int ret;
+ char *category, *categories;
if (!pvt) {
return -1;
@@ -603,8 +604,8 @@
/* Event categories*/
if (strlen(event->categories) > 0) {
ast_str_append(&request, 0, "<Categories>");
- char *categories = strdupa(event->categories); /* Duplicate string, since strsep() is destructive */
- char *category = strsep(&categories, ",");
+ categories = strdupa(event->categories); /* Duplicate string, since strsep() is destructive */
+ category = strsep(&categories, ",");
while (category != NULL) {
ast_str_append(&request, 0, "<String>%s</String>", category);
category = strsep(&categories, ",");
More information about the asterisk-commits
mailing list