A couple minor cleanup tweaks.

* In res/res_sorcery_realtime.c: Broke long line.

* In main/bucket.c: Eliminated unnecessary NULL check as
ast_sorcery_unref() is NULL tolerant and set the global object to NULL
after unref in the system shutdown bucket_cleanup().
........

Merged revisions 433420 from http://svn.asterisk.org/svn/asterisk/branches/13


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@433421 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Richard Mudgett
2015-03-25 18:37:51 +00:00
parent 47156aab92
commit e953d15223
2 changed files with 5 additions and 4 deletions

View File

@@ -882,9 +882,8 @@ static int bucket_scheme_cmp(void *obj, void *arg, int flags)
/*! \brief Cleanup function for graceful shutdowns */
static void bucket_cleanup(void)
{
if (bucket_sorcery) {
ast_sorcery_unref(bucket_sorcery);
}
ast_sorcery_unref(bucket_sorcery);
bucket_sorcery = NULL;
ast_sorcery_wizard_unregister(&bucket_wizard);
ast_sorcery_wizard_unregister(&bucket_file_wizard);