[asterisk-commits] trunk r30490 - /trunk/funcs/func_odbc.c

asterisk-commits at lists.digium.com asterisk-commits at lists.digium.com
Thu May 25 20:08:16 MST 2006


Author: markster
Date: Thu May 25 22:08:15 2006
New Revision: 30490

URL: http://svn.digium.com/view/asterisk?rev=30490&view=rev
Log:
Lets not commit things that cause Asterisk to break when config files aren't present.

Modified:
    trunk/funcs/func_odbc.c

Modified: trunk/funcs/func_odbc.c
URL: http://svn.digium.com/view/asterisk/trunk/funcs/func_odbc.c?rev=30490&r1=30489&r2=30490&view=diff
==============================================================================
--- trunk/funcs/func_odbc.c (original)
+++ trunk/funcs/func_odbc.c Thu May 25 22:08:15 2006
@@ -539,9 +539,9 @@
 
 	cfg = ast_config_load(config);
 	if (!cfg) {
-		ast_log(LOG_WARNING, "Unable to load config for func_odbc: %s\n", config);
+		ast_log(LOG_NOTICE, "Unable to load config for func_odbc: %s\n", config);
 		AST_LIST_UNLOCK(&queries);
-		return -1;
+		return 0;
 	}
 
 	for (catg = ast_category_browse(cfg, NULL);



More information about the asterisk-commits mailing list