fix file check and avoid segfault

This commit is contained in:
Antony Dovgal 2008-08-27 07:40:44 +00:00
parent 7208556ca4
commit 3bd40d9000

View File

@ -316,7 +316,7 @@ PHP_FUNCTION(finfo_open)
RETURN_FALSE;
}
if (*file) { /* user specified filed, perform open_basedir checks */
if (file && *file) { /* user specified file, perform open_basedir checks */
if (!VCWD_REALPATH(file, resolved_path)) {
RETURN_FALSE;
}