]> git.ipfire.org Git - thirdparty/asterisk.git/commit
res/ari/config.c: Optimize conf_alloc() object init. 38/1338/1
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:05:38 +0000 (12:05 -0500)
commit3a8576403968bd1f49c8bef67735c04d05fb6983
tree652f3003ee30507b3022c636813b185a01dd9844
parent028033e5a8dcf2b6d9c454786736825fe0288141
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