Fix INTERNAL_OBJ error on stop when calendars.conf missing
authorTerry Wilson <twilson@digium.com>
Mon, 25 Jan 2010 18:01:08 +0000 (18:01 +0000)
committerTerry Wilson <twilson@digium.com>
Mon, 25 Jan 2010 18:01:08 +0000 (18:01 +0000)
commitfb65a6860ae03f48e233f0a50f1184343b41aad6
tree4e65b7713797a0b9e7efb4f1bc1cb3819e2c8977
parentafb9fab574aa997749e67be1154edd187007a0aa
Fix INTERNAL_OBJ error on stop when calendars.conf missing

Initialize the calendars container before calling load_config and return FAILURE
on allocation failure. Also, use the AST_MODULE_LOAD_* values for return values.
Thanks to rmudgett for pointing out the error and the need to use the defined
values for return

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@242812 65c4cc65-6c06-0410-ace0-fbb531ad65f3
res/res_calendar.c