diff options
author | Felipe Pena <felipe@php.net> | 2010-06-20 14:12:06 +0000 |
---|---|---|
committer | Felipe Pena <felipe@php.net> | 2010-06-20 14:12:06 +0000 |
commit | f7f74b4c0eec65e2232d0d7f3f59e87936d07341 (patch) | |
tree | 3fde74a856815accc4910cff0d1aa74fafed3446 /ext/pdo_sqlite/sqlite_driver.c | |
parent | 84d268f63b80cf0dbfebfbec263e84ecc20889cb (diff) | |
download | php-git-f7f74b4c0eec65e2232d0d7f3f59e87936d07341.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.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/pdo_sqlite/sqlite_driver.c b/ext/pdo_sqlite/sqlite_driver.c index e0f53bebc0..0f6f32310e 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) { |