adobkin / libcapn

A simple C Library for interact with the Apple Push Notification Service (APNs)
MIT License
100 stars 35 forks source link

apn_payload_add_custom_property_integer() returns an error if the integer value is zero #7

Closed legakis closed 9 years ago

legakis commented 9 years ago

It looks like this code:

if (!property_value) {
    APN_SET_ERROR(error, APN_ERR_INVALID_ARGUMENT | APN_ERR_CLASS_USER, "value of custom property is NULL");
    APN_RETURN_ERROR;
}

was copy-and-pasted from apn_payload_add_custom_property_string()

adobkin commented 9 years ago

Fixed. Tnx