]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
If config file is blank, don't load module.
authorTilghman Lesher <tilghman@meg.abyt.es>
Fri, 27 Feb 2009 21:32:13 +0000 (21:32 +0000)
committerTilghman Lesher <tilghman@meg.abyt.es>
Fri, 27 Feb 2009 21:32:13 +0000 (21:32 +0000)
(Closes issue #14563)

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

cdr/cdr_sqlite3_custom.c

index 3bac49550fd1c9948190bd3da883e7d206dae211..b79bb50ac647699c38e0ff857c7327c14a4949ad 100644 (file)
@@ -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 */