mirror of
https://github.com/php/php-src.git
synced 2025-08-19 17:04:47 +02:00
fix #38759 (PDO sqlite2 empty query causes segfault)
This commit is contained in:
parent
aee2284473
commit
41a6d22dd7
1 changed files with 1 additions and 1 deletions
|
@ -114,7 +114,7 @@ int sqlite_step(
|
|||
sqlite *db;
|
||||
int rc;
|
||||
|
||||
if( p->magic!=VDBE_MAGIC_RUN ){
|
||||
if( !p || p->magic!=VDBE_MAGIC_RUN ){
|
||||
return SQLITE_MISUSE;
|
||||
}
|
||||
db = p->db;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue