This commit is contained in:
Anthony Minessale 2011-06-13 13:43:14 -05:00
parent 4eaabd2817
commit 8de62867f5

View File

@ -240,7 +240,7 @@ switch_status_t amf_object_to_event(amf0_data *obj, switch_event_t **event)
if (obj && obj->type == AMF0_TYPE_OBJECT) { if (obj && obj->type == AMF0_TYPE_OBJECT) {
amf0_node *node; amf0_node *node;
if (!event) { if (!*event) {
if ((status = switch_event_create(event, SWITCH_EVENT_CUSTOM)) != SWITCH_STATUS_SUCCESS) { if ((status = switch_event_create(event, SWITCH_EVENT_CUSTOM)) != SWITCH_STATUS_SUCCESS) {
return status; return status;
} }