summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
authorAntony Dovgal <tony2001@php.net>2006-09-09 10:59:05 +0000
committerAntony Dovgal <tony2001@php.net>2006-09-09 10:59:05 +0000
commitd577b8058c7b22097cb87e6887595599c2f4bbf0 (patch)
tree810148d509c53cd00ff14347bb87a80295c9bf84 /ext
parent51fbffba2f0c6df94dfa94ecb824771ce8500ac4 (diff)
downloadphp-git-d577b8058c7b22097cb87e6887595599c2f4bbf0.tar.gz
MFH: fix #38759 (PDO sqlite2 empty query causes segfault)
Diffstat (limited to 'ext')
-rw-r--r--ext/sqlite/libsqlite/src/vdbe.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/sqlite/libsqlite/src/vdbe.c b/ext/sqlite/libsqlite/src/vdbe.c
index 7ea05c9acd..cdbea0ed6b 100644
--- a/ext/sqlite/libsqlite/src/vdbe.c
+++ b/ext/sqlite/libsqlite/src/vdbe.c
@@ -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;