Skip to content

Commit 93368c9

Browse files
committed
Remove unused field from ibase_query struct
1 parent 44a5070 commit 93368c9

2 files changed

Lines changed: 1 addition & 3 deletions

File tree

ibase_query.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,6 @@ static void _php_ibase_free_query(ibase_query *ib_query) /* {{{ */
8181
{
8282
IBDEBUG("Freeing query...");
8383

84-
if(ib_query->in_nullind)efree(ib_query->in_nullind);
8584
if(ib_query->out_nullind)efree(ib_query->out_nullind);
8685
if(ib_query->bind_buf)efree(ib_query->bind_buf);
8786
if(ib_query->in_sqlda)efree(ib_query->in_sqlda); // Note to myself: no need for _php_ibase_free_xsqlda()
@@ -326,7 +325,6 @@ static int _php_ibase_prepare(ibase_query **new_query, ibase_db_link *link, /* {
326325
assert(ib_query->in_sqlda->sqld == ib_query->in_fields_count);
327326

328327
ib_query->bind_buf = safe_emalloc(sizeof(BIND_BUF), ib_query->in_sqlda->sqld, 0);
329-
ib_query->in_nullind = safe_emalloc(sizeof(*ib_query->in_nullind), ib_query->in_sqlda->sqld, 0);
330328
if (FAILURE == _php_ibase_alloc_array(&ib_query->in_array, ib_query->in_sqlda,
331329
link->handle, trans->handle, &ib_query->in_array_cnt)) {
332330
goto _php_ibase_alloc_query_error;

php_ibase_includes.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ typedef struct _ib_query {
171171
char *query;
172172
ISC_UCHAR statement_type;
173173
BIND_BUF *bind_buf;
174-
ISC_SHORT *in_nullind, *out_nullind;
174+
ISC_SHORT *out_nullind;
175175
ISC_SHORT *sql_types;
176176
ISC_USHORT in_fields_count, out_fields_count;
177177
HashTable *ht_aliases, *ht_ind; // Precomputed for ibase_fetch_*()

0 commit comments

Comments
 (0)