Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 7649a35

Browse files
committed
Fixed access to uninitialized value (in case of exception)
1 parent bf7d3e0 commit 7649a35

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

ext/sqlite3/sqlite3.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -840,7 +840,7 @@ static int php_sqlite3_callback_compare(void *coll, int a_len, const void *a, in
840840
zval retval;
841841
int ret;
842842

843-
843+
ZVAL_UNDEF(&retval);
844844
collation->fci.fci.size = (sizeof(collation->fci.fci));
845845
collation->fci.fci.function_table = EG(function_table);
846846
ZVAL_COPY_VALUE(&collation->fci.fci.function_name, &collation->cmp_func);

0 commit comments

Comments
 (0)