mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-04-13 07:45:26 +00:00
deal with empty param to serialize()
This commit is contained in:
parent
85d3428372
commit
60af226890
@ -355,7 +355,7 @@ const char *ESLevent::serialize(const char *format)
|
||||
return "";
|
||||
}
|
||||
|
||||
if (!strcasecmp(format, "json")) {
|
||||
if (format && !strcasecmp(format, "json")) {
|
||||
esl_event_serialize_json(event, &serialized_string);
|
||||
return serialized_string;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user