diff options
| author | Felipe Pena <felipe@php.net> | 2011-06-17 02:00:20 +0000 |
|---|---|---|
| committer | Felipe Pena <felipe@php.net> | 2011-06-17 02:00:20 +0000 |
| commit | f7ee12e9285c878df386470f6fc32e54da010234 (patch) | |
| tree | 0faa98d67db2a2aeb790c090bd823fed64fd1f7a /ext/pdo_firebird/firebird_statement.c | |
| parent | ccae79a2c35a3a36566f128cad7f81c3e249ab5a (diff) | |
| download | php-git-f7ee12e9285c878df386470f6fc32e54da010234.tar.gz | |
- Fixed two "jump or move depends on uninitialised value"
Diffstat (limited to 'ext/pdo_firebird/firebird_statement.c')
| -rw-r--r-- | ext/pdo_firebird/firebird_statement.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/pdo_firebird/firebird_statement.c b/ext/pdo_firebird/firebird_statement.c index 3d45f185e7..6dcd09c35a 100644 --- a/ext/pdo_firebird/firebird_statement.c +++ b/ext/pdo_firebird/firebird_statement.c @@ -191,7 +191,7 @@ static int firebird_stmt_describe(pdo_stmt_t *stmt, int colno TSRMLS_DC) /* {{{ char *cp; /* allocate storage for the column */ - var->sqlind = (void*)emalloc(var->sqllen + 2*sizeof(short)); + var->sqlind = (void*)ecalloc(1, var->sqllen + 2*sizeof(short)); var->sqldata = &((char*)var->sqlind)[sizeof(short)]; colname_len = (S->H->fetch_table_names && var->relname_length) |
