mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-02 19:16:15 +00:00
Various: bugfixes found via chaos
Using DEBUG_CHAOS several instances of a null pointer crash, and one uninitialized variable were uncovered and fixed. Also added details on why Asterisk failed to initialize. Review: https://reviewboard.asterisk.org/r/4468/ ........ Merged revisions 433064 from http://svn.asterisk.org/svn/asterisk/branches/13 git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@433065 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -776,7 +776,7 @@ static struct ast_codec t140 = {
|
||||
struct ast_codec *__codec_ ## __LINE__; \
|
||||
res |= __ast_codec_register(&(codec), NULL); \
|
||||
__codec_ ## __LINE__ = ast_codec_get((codec).name, (codec).type, (codec).sample_rate); \
|
||||
__fmt_ ## __LINE__ = ast_format_create(__codec_ ## __LINE__); \
|
||||
__fmt_ ## __LINE__ = __codec_ ## __LINE__ ? ast_format_create(__codec_ ## __LINE__) : NULL; \
|
||||
res |= ast_format_cache_set(__fmt_ ## __LINE__); \
|
||||
ao2_ref(__fmt_ ## __LINE__, -1); \
|
||||
ao2_ref(__codec_ ## __LINE__, -1); \
|
||||
|
Reference in New Issue
Block a user