From: Tilghman Lesher Date: Fri, 27 Feb 2009 21:32:13 +0000 (+0000) Subject: If config file is blank, don't load module. X-Git-Tag: 1.6.2.0-beta1~114 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=31ae1bfa0d15b9b42c2aaa21d0826a31d9493a49;p=thirdparty%2Fasterisk.git If config file is blank, don't load module. (Closes issue #14563) git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@179161 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/cdr/cdr_sqlite3_custom.c b/cdr/cdr_sqlite3_custom.c index 3bac49550f..b79bb50ac6 100644 --- a/cdr/cdr_sqlite3_custom.c +++ b/cdr/cdr_sqlite3_custom.c @@ -172,7 +172,7 @@ static int load_config(int reload) /* Nothing configured */ ast_mutex_unlock(&lock); ast_config_destroy(cfg); - return 0; + return -1; } /* Mapping must have a table name */