From: Anthony Minessale Date: Mon, 12 Jul 2010 20:37:07 +0000 (-0500) Subject: deal with empty param to serialize() X-Git-Tag: v1.2-rc1~544^2~58^2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=60af226890a190ad3aa25ab46eff9e1d0e7e6938;p=thirdparty%2Ffreeswitch.git deal with empty param to serialize() --- diff --git a/libs/esl/src/esl_oop.cpp b/libs/esl/src/esl_oop.cpp index 1b6629c066..231950f892 100644 --- a/libs/esl/src/esl_oop.cpp +++ b/libs/esl/src/esl_oop.cpp @@ -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; }