summaryrefslogtreecommitdiff
path: root/ext/pdo_sqlite/sqlite_driver.c
diff options
context:
space:
mode:
authorFelipe Pena <felipe@php.net>2010-06-20 14:12:06 +0000
committerFelipe Pena <felipe@php.net>2010-06-20 14:12:06 +0000
commitc6e852d7dbe47a08e911411481f4a84992dfe8fc (patch)
treebecaf2bdc2480febb9b41314c27e02d79f1f9113 /ext/pdo_sqlite/sqlite_driver.c
parentffdd175918818f07647ee5b2a36d19bd20077a27 (diff)
downloadphp-git-c6e852d7dbe47a08e911411481f4a84992dfe8fc.tar.gz
- Completed the fix for bug #52010
# Fixing pdo drivers
Diffstat (limited to 'ext/pdo_sqlite/sqlite_driver.c')
-rw-r--r--ext/pdo_sqlite/sqlite_driver.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/pdo_sqlite/sqlite_driver.c b/ext/pdo_sqlite/sqlite_driver.c
index 7ad7722c9d..3b611b28be 100644
--- a/ext/pdo_sqlite/sqlite_driver.c
+++ b/ext/pdo_sqlite/sqlite_driver.c
@@ -636,7 +636,7 @@ static struct pdo_dbh_methods sqlite_methods = {
static char *make_filename_safe(const char *filename TSRMLS_DC)
{
- if (strncmp(filename, ":memory:", sizeof(":memory:")-1)) {
+ if (*filename && strncmp(filename, ":memory:", sizeof(":memory:")-1)) {
char *fullpath = expand_filepath(filename, NULL TSRMLS_CC);
if (!fullpath) {