summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThies C. Arntzen <thies@php.net>1999-09-23 11:20:56 +0000
committerThies C. Arntzen <thies@php.net>1999-09-23 11:20:56 +0000
commitedb2032c4ec0ac537f56933ca1947615a7d90d83 (patch)
tree31f4679c03e8e2cc806747fdd757b2b7a3cacb97
parent820adaddf192e744c52230cc7ca8386bf833aab4 (diff)
downloadphp-git-edb2032c4ec0ac537f56933ca1947615a7d90d83.tar.gz
tiny optimisation
-rw-r--r--ext/oracle/oracle.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/oracle/oracle.c b/ext/oracle/oracle.c
index 0efdc278f2..5713fc44e1 100644
--- a/ext/oracle/oracle.c
+++ b/ext/oracle/oracle.c
@@ -1657,10 +1657,10 @@ ora_describe_define(oraCursor * cursor)
php_error(E_WARNING, "Out of memory");
return -1;
}
+ memset(cursor->columns,0,sizeof(oraColumn) * cursor->ncols);
}
for(col = 0; col < cursor->ncols; col++){
- memset(&cursor->columns[col], 0, sizeof(oraColumn));
cursor->columns[col].cbufl = ORANAMELEN;
if (odescr(&cursor->cda, (sword)col + 1, &cursor->columns[col].dbsize,