mirror of
https://github.com/php/php-src.git
synced 2025-08-15 21:48:51 +02:00
Initalize return_value before use
Otherwise we likely segfault[1]. We fix the same issue for
PDO_Firebird as well.
[1] <38267250/job/6y3ngn1k6ryxx6j3 (L9783)
>
Closes GH-6785.
This commit is contained in:
parent
92a969421c
commit
128082c86f
2 changed files with 2 additions and 0 deletions
|
@ -243,6 +243,7 @@ static int firebird_stmt_get_column_meta(pdo_stmt_t *stmt, zend_long colno, zval
|
|||
}
|
||||
}
|
||||
|
||||
array_init(return_value);
|
||||
add_assoc_long(return_value, "pdo_type", param_type);
|
||||
return 1;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue