From: Joshua Colp Date: Sat, 30 Dec 2006 03:42:20 +0000 (+0000) Subject: Initialize obj pointers to NULL. Gets rid of two compiler warnings. X-Git-Tag: 1.6.0-beta1~3^2~3601 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f19c6f66aa9fc25a2b2777af3efb9b94332d96f5;p=thirdparty%2Fasterisk.git Initialize obj pointers to NULL. Gets rid of two compiler warnings. git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@49065 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/funcs/func_odbc.c b/funcs/func_odbc.c index bc50451f5a..c1677519d1 100644 --- a/funcs/func_odbc.c +++ b/funcs/func_odbc.c @@ -95,7 +95,7 @@ static SQLHSTMT generic_prepare(struct odbc_obj *obj, void *data) */ 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_write(struct ast_channel *chan, char *cmd, char *s, const ch 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;