[asterisk-commits] twilson: branch twilson/calendaring r156952 - /team/twilson/calendaring/res/
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Fri Nov 14 12:48:32 CST 2008
Author: twilson
Date: Fri Nov 14 12:48:31 2008
New Revision: 156952
URL: http://svn.digium.com/view/asterisk?view=rev&rev=156952
Log:
Remove some debugging and add some checking
Modified:
team/twilson/calendaring/res/res_caldav.c
team/twilson/calendaring/res/res_exchangecal.c
team/twilson/calendaring/res/res_icalendar.c
Modified: team/twilson/calendaring/res/res_caldav.c
URL: http://svn.digium.com/view/asterisk/team/twilson/calendaring/res/res_caldav.c?view=diff&rev=156952&r1=156951&r2=156952
==============================================================================
--- team/twilson/calendaring/res/res_caldav.c (original)
+++ team/twilson/calendaring/res/res_caldav.c Fri Nov 14 12:48:31 2008
@@ -254,7 +254,6 @@
ast_str_set(&subdir, 0, "%s%s.ics", body->str[body->used] == '/' ? "" : "/", event->uid);
response = caldav_request(event->owner->tech_pvt, "PUT", body, subdir, "text/calendar");
- ast_verb(1, "%s", response->str);
ret = 0;
write_cleanup:
Modified: team/twilson/calendaring/res/res_exchangecal.c
URL: http://svn.digium.com/view/asterisk/team/twilson/calendaring/res/res_exchangecal.c?view=diff&rev=156952&r1=156951&r2=156952
==============================================================================
--- team/twilson/calendaring/res/res_exchangecal.c (original)
+++ team/twilson/calendaring/res/res_exchangecal.c Fri Nov 14 12:48:31 2008
@@ -480,7 +480,6 @@
ast_str_set(&subdir, 0, "/Calendar/%s.eml", uid->str);
response = exchangecal_request(event->owner->tech_pvt, "PROPPATCH", body, subdir);
- ast_verb(1, "%s", response->str);
ret = 0;
write_cleanup:
Modified: team/twilson/calendaring/res/res_icalendar.c
URL: http://svn.digium.com/view/asterisk/team/twilson/calendaring/res/res_icalendar.c?view=diff&rev=156952&r1=156951&r2=156952
==============================================================================
--- team/twilson/calendaring/res/res_icalendar.c (original)
+++ team/twilson/calendaring/res/res_icalendar.c Fri Nov 14 12:48:31 2008
@@ -126,7 +126,7 @@
int ret;
struct ast_str *response;
ne_request *req;
- icalcomponent *comp;
+ icalcomponent *comp = NULL;
if (!pvt) {
ast_log(LOG_ERROR, "There is no private!\n");
@@ -147,7 +147,9 @@
return NULL;
}
- comp = icalparser_parse_string(response->str);
+ if (!ast_strlen_zero(response->str)) {
+ comp = icalparser_parse_string(response->str);
+ }
ast_free(response);
return comp;
More information about the asterisk-commits
mailing list