This commit is contained in:
Anthony Minessale 2011-06-13 13:43:14 -05:00
parent 4eaabd2817
commit 8de62867f5
1 changed files with 1 additions and 1 deletions

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) {
amf0_node *node;
if (!event) {
if (!*event) {
if ((status = switch_event_create(event, SWITCH_EVENT_CUSTOM)) != SWITCH_STATUS_SUCCESS) {
return status;
}