mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-08-14 01:49:05 +00:00
code analysis, bounds checks, buffer overrun fixes.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@7403 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
@@ -999,7 +999,7 @@ SWITCH_DECLARE(switch_status_t) switch_ivr_digit_stream_parser_new(switch_memory
|
||||
*parser = (switch_ivr_digit_stream_parser_t *) switch_core_alloc(pool, sizeof(switch_ivr_digit_stream_parser_t));
|
||||
}
|
||||
// if we have parser object, initialize it for the caller
|
||||
if (*parser != NULL) {
|
||||
if (pool && *parser != NULL) {
|
||||
memset(*parser, 0, sizeof(switch_ivr_digit_stream_parser_t));
|
||||
(*parser)->pool_auto_created = pool_auto_created;
|
||||
(*parser)->pool = pool;
|
||||
|
Reference in New Issue
Block a user