From f19c6f66aa9fc25a2b2777af3efb9b94332d96f5 Mon Sep 17 00:00:00 2001 From: Joshua Colp Date: Sat, 30 Dec 2006 03:42:20 +0000 Subject: [PATCH] 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 --- funcs/func_odbc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; -- 2.47.2