Skip to content

Commit 73426e2

Browse files
author
Sascha Schumann
committed
- MFH
1 parent 956f263 commit 73426e2

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

ext/informix/ifx.ec

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3948,6 +3948,7 @@ static long php_intifx_create_char(char* param, long len, HashTable *list TSRMLS
39483948
php_error_docref(NULL TSRMLS_CC, E_WARNING, "Can't create char-resource");
39493949
return -1;
39503950
}
3951+
memset(Ifx_char, 0, sizeof(IFX_IDRES));
39513952

39523953
Ifx_char->type = TYPE_CHAR;
39533954

@@ -4232,6 +4233,7 @@ static long php_intifxus_create_slob(long create_mode, HashTable *list TSRMLS_DC
42324233
php_error_docref(NULL TSRMLS_CC, E_WARNING, "Can't create slob-resource");
42334234
return -1;
42344235
}
4236+
memset(Ifx_slob, 0, sizeof(IFX_IDRES));
42354237

42364238
errcode = ifx_lo_def_create_spec(&(Ifx_slob->SLOB.createspec));
42374239
if (errcode < 0) {
@@ -4474,6 +4476,7 @@ static long php_intifxus_new_slob(HashTable *list TSRMLS_DC)
44744476
php_error_docref(NULL TSRMLS_CC, E_WARNING, "Can't create slob-resource");
44754477
return -1;
44764478
}
4479+
memset(Ifx_slob, 0, sizeof(IFX_IDRES));
44774480

44784481
Ifx_slob->type = TYPE_SLOB;
44794482
Ifx_slob->SLOB.lofd = -1;

0 commit comments

Comments
 (0)