mirror of
https://github.com/php/php-src.git
synced 2025-08-18 23:18:56 +02:00
MFH: fix #38759 (PDO sqlite2 empty query causes segfault)
This commit is contained in:
parent
51fbffba2f
commit
d577b8058c
2 changed files with 2 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