[asterisk-commits] twilson: branch twilson/res_config_sqlite3 r334569 - /team/twilson/res_config...

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Tue Sep 6 16:37:58 CDT 2011


Author: twilson
Date: Tue Sep  6 16:37:54 2011
New Revision: 334569

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=334569
Log:
Another potential crash due to a null field

Modified:
    team/twilson/res_config_sqlite3/res/res_config_sqlite3.c

Modified: team/twilson/res_config_sqlite3/res/res_config_sqlite3.c
URL: http://svnview.digium.com/svn/asterisk/team/twilson/res_config_sqlite3/res/res_config_sqlite3.c?view=diff&rev=334569&r1=334568&r2=334569
==============================================================================
--- team/twilson/res_config_sqlite3/res/res_config_sqlite3.c (original)
+++ team/twilson/res_config_sqlite3/res/res_config_sqlite3.c Tue Sep  6 16:37:54 2011
@@ -481,7 +481,7 @@
 
 	for (i = 0; i < num_columns; i++) {
 		struct ast_variable *var;
-		if (!(var = ast_variable_new(columns[i], values[i], ""))) {
+		if (!(var = ast_variable_new(columns[i], S_OR(values[i], ""), ""))) {
 			ast_log(LOG_ERROR, "Could not create new variable for '%s: %s', throwing away list\n", columns[i], values[i]);
 			continue;
 		}




More information about the asterisk-commits mailing list