diff options
| author | Sascha Schumann <sas@php.net> | 2006-01-13 14:25:46 +0000 |
|---|---|---|
| committer | Sascha Schumann <sas@php.net> | 2006-01-13 14:25:46 +0000 |
| commit | 64447a29aad4c4cf31825029b44d3ecc05f7ff1e (patch) | |
| tree | 9d48685f90906c471704023cc44dcbb99e1ef1c3 | |
| parent | 0851c649d16ebac9239ffd7a83336a82a349fb44 (diff) | |
| download | php-git-64447a29aad4c4cf31825029b44d3ecc05f7ff1e.tar.gz | |
- MFH lower valgrind error count to 0
| -rw-r--r-- | ext/informix/ifx.ec | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/ext/informix/ifx.ec b/ext/informix/ifx.ec index db836e3dfc..195c3671cf 100644 --- a/ext/informix/ifx.ec +++ b/ext/informix/ifx.ec @@ -3948,6 +3948,7 @@ static long php_intifx_create_char(char* param, long len, HashTable *list TSRMLS php_error_docref(NULL TSRMLS_CC, E_WARNING, "Can't create char-resource"); return -1; } + memset(Ifx_char, 0, sizeof(IFX_IDRES)); Ifx_char->type = TYPE_CHAR; @@ -4232,6 +4233,7 @@ static long php_intifxus_create_slob(long create_mode, HashTable *list TSRMLS_DC php_error_docref(NULL TSRMLS_CC, E_WARNING, "Can't create slob-resource"); return -1; } + memset(Ifx_slob, 0, sizeof(IFX_IDRES)); errcode = ifx_lo_def_create_spec(&(Ifx_slob->SLOB.createspec)); if (errcode < 0) { @@ -4474,6 +4476,7 @@ static long php_intifxus_new_slob(HashTable *list TSRMLS_DC) php_error_docref(NULL TSRMLS_CC, E_WARNING, "Can't create slob-resource"); return -1; } + memset(Ifx_slob, 0, sizeof(IFX_IDRES)); Ifx_slob->type = TYPE_SLOB; Ifx_slob->SLOB.lofd = -1; |
