[asterisk-commits] twilson: trunk r151830 - /trunk/funcs/func_odbc.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Thu Oct 23 16:27:35 CDT 2008


Author: twilson
Date: Thu Oct 23 16:27:35 2008
New Revision: 151830

URL: http://svn.digium.com/view/asterisk?view=rev&rev=151830
Log:
allow to compile under --enable-dev-mode (gcc didn't actually complain when I was using ccache...)

Modified:
    trunk/funcs/func_odbc.c

Modified: trunk/funcs/func_odbc.c
URL: http://svn.digium.com/view/asterisk/trunk/funcs/func_odbc.c?view=diff&rev=151830&r1=151829&r2=151830
==============================================================================
--- trunk/funcs/func_odbc.c (original)
+++ trunk/funcs/func_odbc.c Thu Oct 23 16:27:35 2008
@@ -939,7 +939,7 @@
 
 	if (a->argc == 5 && !strcmp(a->argv[4], "exec")) {
 		/* Execute the query */
-		struct odbc_obj *obj;
+		struct odbc_obj *obj = NULL;
 		int dsn, executed = 0;
 		SQLHSTMT stmt;
 		int rows = 0, res, x;




More information about the asterisk-commits mailing list