mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-04-02 11:19:28 +00:00
fix segfault
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@2296 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
parent
e54c549840
commit
acf84d7631
@ -441,9 +441,11 @@ SWITCH_DECLARE(switch_status_t) switch_event_add_body(switch_event_t *event, cha
|
|||||||
char data[2048];
|
char data[2048];
|
||||||
|
|
||||||
va_list ap;
|
va_list ap;
|
||||||
va_start(ap, fmt);
|
if (fmt) {
|
||||||
vsnprintf(data, sizeof(data), fmt, ap);
|
va_start(ap, fmt);
|
||||||
va_end(ap);
|
vsnprintf(data, sizeof(data), fmt, ap);
|
||||||
|
va_end(ap);
|
||||||
|
}
|
||||||
|
|
||||||
if (ret == -1) {
|
if (ret == -1) {
|
||||||
return SWITCH_STATUS_MEMERR;
|
return SWITCH_STATUS_MEMERR;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user