From: Brian West Date: Thu, 30 Aug 2018 19:33:22 +0000 (-0500) Subject: FS-11372: [mod_commands] garbage uuid on output from bgapi #resolve X-Git-Tag: v1.8.2~1^2~50 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=31028063905db6f207a55adab4ee321dd6897fc6;p=thirdparty%2Ffreeswitch.git FS-11372: [mod_commands] garbage uuid on output from bgapi #resolve --- diff --git a/src/mod/applications/mod_commands/mod_commands.c b/src/mod/applications/mod_commands/mod_commands.c index 5ed543f402..f20dc101e2 100644 --- a/src/mod/applications/mod_commands/mod_commands.c +++ b/src/mod/applications/mod_commands/mod_commands.c @@ -5334,7 +5334,7 @@ SWITCH_STANDARD_API(bgapi_function) switch_threadattr_t *thd_attr = NULL; const char *p, *arg = cmd; - char my_uuid[SWITCH_UUID_FORMATTED_LENGTH + 1]; + char my_uuid[SWITCH_UUID_FORMATTED_LENGTH + 1] = ""; if (!cmd) { stream->write_function(stream, "-ERR Invalid syntax\n");