[asterisk-commits] mmichelson: trunk r131361 - /trunk/res/res_config_sqlite.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Wed Jul 16 14:57:03 CDT 2008


Author: mmichelson
Date: Wed Jul 16 14:57:02 2008
New Revision: 131361

URL: http://svn.digium.com/view/asterisk?view=rev&rev=131361
Log:
Don't try to dereference the dbfile pointer if
we know that it's NULL.

(closes issue #13092)
Reported by: gknispel_proformatique
Patches:
      trunk_sqlite_check_vars_null.patch uploaded by gknispel (license 261)


Modified:
    trunk/res/res_config_sqlite.c

Modified: trunk/res/res_config_sqlite.c
URL: http://svn.digium.com/view/asterisk/trunk/res/res_config_sqlite.c?view=diff&rev=131361&r1=131360&r2=131361
==============================================================================
--- trunk/res/res_config_sqlite.c (original)
+++ trunk/res/res_config_sqlite.c Wed Jul 16 14:57:02 2008
@@ -600,7 +600,7 @@
 static int check_vars(void)
 {
 	if (!dbfile) {
-		ast_log(LOG_ERROR, "Undefined parameter %s\n", dbfile);
+		ast_log(LOG_ERROR, "Required parameter undefined: dbfile\n");
 		return 1;
 	}
 




More information about the asterisk-commits mailing list