File tree 2 files changed +12
-0
lines changed
2 files changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -349,6 +349,11 @@ const char *icalproperty_as_ical_string(icalproperty *prop)
349
349
char * buf ;
350
350
351
351
buf = icalproperty_as_ical_string_r (prop );
352
+ #if ICAL_ALLOW_EMPTY_PROPERTIES
353
+ /* empty string is set to no-value, per commit b1a9eb33597028b2d160f289b6105f4aa67276a7
354
+ * which return NULL as the string value. Convert back to an empty string here */
355
+ if (!buf ) return "" ;
356
+ #endif
352
357
icalmemory_add_tmp_buffer (buf );
353
358
return buf ;
354
359
}
Original file line number Diff line number Diff line change @@ -1247,7 +1247,14 @@ char *icalvalue_as_ical_string_r(const icalvalue *value)
1247
1247
case ICAL_NO_VALUE :
1248
1248
default :
1249
1249
{
1250
+ #if ICAL_ALLOW_EMPTY_PROPERTIES
1251
+ /* empty string is set to no-value, per
1252
+ * commit b1a9eb33597028b2d160f289b6105f4aa67276a7
1253
+ * Convert back to an empty string here */
1254
+ return icalmemory_strdup ("" );
1255
+ #else
1250
1256
return 0 ;
1257
+ #endif
1251
1258
}
1252
1259
}
1253
1260
}
You can’t perform that action at this time.
0 commit comments