- Completed the fix for bug #52010

# Fixing pdo drivers
This commit is contained in:
Felipe Pena 2010-06-20 14:12:06 +00:00
parent ffdd175918
commit c6e852d7db
2 changed files with 2 additions and 2 deletions

View File

@ -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) {

View File

@ -515,7 +515,7 @@ static struct pdo_dbh_methods sqlite2_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) {