sorcery: Eliminate shadowing a varaible that caused confusion.
authorRichard Mudgett <rmudgett@digium.com>
Mon, 9 Dec 2013 18:32:57 +0000 (18:32 +0000)
committerRichard Mudgett <rmudgett@digium.com>
Mon, 9 Dec 2013 18:32:57 +0000 (18:32 +0000)
commit0a02932ddf96458212487670b58ac69a593b607a
tree0b82aee5af5447c58c1bd77c2088c6d7a536ebc7
parentdcb642e2da10f2393900ff530c4369f79173193d
sorcery: Eliminate shadowing a varaible that caused confusion.

* Eliminated shadowing of the __ast_sorcery_apply_config() name parameter
causing confusion.

* Fix potential crash from sorcery.conf user input in
__ast_sorcery_apply_config() if the user supplied a malformed config line
that is missing the sorcery object type name.

* Remove redundant test in __ast_sorcery_apply_config().  !config and
config == CONFIGS_STATUS_FILEMISSING are identical.
........

Merged revisions 403541 from http://svn.asterisk.org/svn/asterisk/branches/12

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@403544 65c4cc65-6c06-0410-ace0-fbb531ad65f3
main/sorcery.c