1
0
mirror of https://github.com/php/php-src.git synced 2026-04-28 18:53:33 +02:00

fix file check and avoid segfault

This commit is contained in:
Antony Dovgal
2008-08-27 07:40:59 +00:00
parent 3a412d36da
commit f0d93b2a07
+1 -1
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 filed, perform open_basedir checks */
if (!VCWD_REALPATH(file, resolved_path)) {
RETURN_FALSE;
}