res/ari/config.c: Optimize conf_alloc() object init.
authorRichard Mudgett <rmudgett@digium.com>
Fri, 25 Sep 2015 22:26:08 +0000 (17:26 -0500)
committerRichard Mudgett <rmudgett@digium.com>
Tue, 29 Sep 2015 17:10:45 +0000 (12:10 -0500)
commit3f4fa245e5ccc0e0e583a50253f23444012ca879
tree6a75016fc83d4d8a279d079b00065a98f6d539f3
parentaa00df62ee8706db4a64b3591f15e2e19a136d09
res/ari/config.c: Optimize conf_alloc() object init.

* Now conf_alloc() has more off nominal error checking.

* Eliminated RAII_VAR() use in conf_alloc().

* Eliminated a dubius shortcut when destroying cfg->general in
conf_destructor() that would cause a crash if cfg->general failed to get
allocated.

* Add some ACO registration section comments.

Change-Id: Ia40c2b1b2d0777d641605118ae019c5a73865e1a
res/ari/config.c