aboutsummaryrefslogtreecommitdiffstats
path: root/funcs/func_odbc.c
diff options
context:
space:
mode:
authorfile <file@f38db490-d61c-443f-a65b-d21fe96a405b>2006-12-30 03:42:20 +0000
committerfile <file@f38db490-d61c-443f-a65b-d21fe96a405b>2006-12-30 03:42:20 +0000
commit61a8029e9efbba4f96c3ffcd4a31a1af22ef33b5 (patch)
tree68bdcbde5cb002dad13cbc9b26fe04783b501e11 /funcs/func_odbc.c
parente095143a373cde3c2cc71c19eeba003e4b1e9582 (diff)
Initialize obj pointers to NULL. Gets rid of two compiler warnings.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@49065 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'funcs/func_odbc.c')
-rw-r--r--funcs/func_odbc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/funcs/func_odbc.c b/funcs/func_odbc.c
index bc50451f5..c1677519d 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;