]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Merged revisions 62841 via svnmerge from
authorKevin P. Fleming <kpfleming@digium.com>
Thu, 3 May 2007 00:23:37 +0000 (00:23 +0000)
committerKevin P. Fleming <kpfleming@digium.com>
Thu, 3 May 2007 00:23:37 +0000 (00:23 +0000)
https://origsvn.digium.com/svn/asterisk/branches/1.2

........
r62841 | kpfleming | 2007-05-02 20:23:00 -0400 (Wed, 02 May 2007) | 2 lines

doh... initializing the pointer variable will work just a bit better

........

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@62842 65c4cc65-6c06-0410-ace0-fbb531ad65f3

res/res_config_odbc.c

index e0600d9a60ae67c8ec63d3dc70483ece47b66398..496050263075cf6878fbf0619b692a8b3573243d 100644 (file)
@@ -485,7 +485,7 @@ static struct ast_config *config_odbc(const char *database, const char *table, c
        int res = 0;
        struct odbc_obj *obj;
        char sqlbuf[1024] = "";
-       char *sql;
+       char *sql = sqlbuf;
        size_t sqlleft = sizeof(sqlbuf);
        unsigned int last_cat_metric = 0;
        SQLSMALLINT rowcount = 0;