allow to compile under --enable-dev-mode (gcc didn't actually complain when I was...
authorTerry Wilson <twilson@digium.com>
Thu, 23 Oct 2008 21:27:35 +0000 (21:27 +0000)
committerTerry Wilson <twilson@digium.com>
Thu, 23 Oct 2008 21:27:35 +0000 (21:27 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@151830 65c4cc65-6c06-0410-ace0-fbb531ad65f3

funcs/func_odbc.c

index 3344385..b25e993 100644 (file)
@@ -939,7 +939,7 @@ static char *cli_odbc_read(struct ast_cli_entry *e, int cmd, struct ast_cli_args
 
        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;