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
This commit is contained in:
parent
ae649fef27
commit
f19c6f66aa
|
@ -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)
|
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;
|
struct acf_odbc_query *query;
|
||||||
char *t, buf[2048]="", varname[15];
|
char *t, buf[2048]="", varname[15];
|
||||||
int i, dsn;
|
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)
|
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;
|
struct acf_odbc_query *query;
|
||||||
char sql[2048] = "", varname[15], colnames[2048] = "";
|
char sql[2048] = "", varname[15], colnames[2048] = "";
|
||||||
int res, x, buflen = 0, escapecommas, dsn;
|
int res, x, buflen = 0, escapecommas, dsn;
|
||||||
|
|
Loading…
Reference in New Issue