mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-01 22:55:23 +00:00
A caller may ask us to set a date-valued property to null. Rebuff them
gently, instead of wetting the floor.
This commit is contained in:
parent
522338eedf
commit
8b7826b74e
@ -335,6 +335,8 @@ NS_IMETHODIMP \
|
||||
calIcalComponent::Set##Attrname(calIDateTime *dt) \
|
||||
{ \
|
||||
struct icaltimetype itt; \
|
||||
if (!dt) \
|
||||
return NS_ERROR_INVALID_ARG; \
|
||||
dt->ToIcalTime(&itt); \
|
||||
icalvalue *val = icalvalue_new_datetime(itt); \
|
||||
if (!val) \
|
||||
|
Loading…
Reference in New Issue
Block a user