From: Ilia Alshanetsky Date: Sat, 22 Sep 2007 15:55:35 +0000 (+0000) Subject: Improve check for filename (fixed coverity issue #355) X-Git-Tag: php-5.2.5RC1~97 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ddc1871576fa289c1dd614fb81cceebc77ec15bd;p=php Improve check for filename (fixed coverity issue #355) --- diff --git a/ext/spl/spl_directory.c b/ext/spl/spl_directory.c index 6529bbc1d9..1931dbbeb0 100755 --- a/ext/spl/spl_directory.c +++ b/ext/spl/spl_directory.c @@ -862,7 +862,7 @@ SPL_METHOD(SplFileInfo, getRealPath) spl_filesystem_object_get_file_name(intern TSRMLS_CC); } - if (intern->file_name_len && VCWD_REALPATH(intern->file_name, buff)) { + if (intern->file_name && VCWD_REALPATH(intern->file_name, buff)) { #ifdef ZTS if (VCWD_ACCESS(buff, F_OK)) { RETVAL_FALSE;