diff options
author | Scott Griepentrog <sgriepentrog@digium.com> | 2015-03-17 22:15:09 +0000 |
---|---|---|
committer | Scott Griepentrog <sgriepentrog@digium.com> | 2015-03-17 22:15:09 +0000 |
commit | 2c7b9451499c5bd50bc6fa54a0073781b116834c (patch) | |
tree | 66390386d5b9e4200c83afa3448bd4d054254349 /include/asterisk | |
parent | 1fb1c81923249413e3e439a645ade8793ccc0db6 (diff) |
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/
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/13@433064 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'include/asterisk')
-rw-r--r-- | include/asterisk/config.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/include/asterisk/config.h b/include/asterisk/config.h index 3b46982b2..555269546 100644 --- a/include/asterisk/config.h +++ b/include/asterisk/config.h @@ -844,8 +844,11 @@ void ast_category_append(struct ast_config *config, struct ast_category *cat); * * \details * This function is used to apply a base (template) to an existing category + * + * \retval 0 if succeeded + * \retval -1 if the memory allocation failed */ -void ast_category_inherit(struct ast_category *existing, const struct ast_category *base); +int ast_category_inherit(struct ast_category *existing, const struct ast_category *base); /*! * \brief Removes and destroys all variables in a category |