[asterisk-commits] file: trunk r49065 - /trunk/funcs/func_odbc.c

asterisk-commits at lists.digium.com asterisk-commits at lists.digium.com
Fri Dec 29 20:42:20 MST 2006


Author: file
Date: Fri Dec 29 21:42:20 2006
New Revision: 49065

URL: http://svn.digium.com/view/asterisk?view=rev&rev=49065
Log:
Initialize obj pointers to NULL. Gets rid of two compiler warnings.

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=49065&r1=49064&r2=49065
==============================================================================
--- trunk/funcs/func_odbc.c (original)
+++ trunk/funcs/func_odbc.c Fri Dec 29 21:42:20 2006
@@ -95,7 +95,7 @@
  */
 static int acf_odbc_write(struct ast_channel *chan, char *cmd, char *s, const char *value)
 {
-	struct odbc_obj *obj;
+	struct odbc_obj *obj = NULL;
 	struct acf_odbc_query *query;
 	char *t, buf[2048]="", varname[15];
 	int i, dsn;
@@ -195,7 +195,7 @@
 
 static int acf_odbc_read(struct ast_channel *chan, char *cmd, char *s, char *buf, size_t len)
 {
-	struct odbc_obj *obj;
+	struct odbc_obj *obj = NULL;
 	struct acf_odbc_query *query;
 	char sql[2048] = "", varname[15], colnames[2048] = "";
 	int res, x, buflen = 0, escapecommas, dsn;



More information about the asterisk-commits mailing list