From: Thies C. Arntzen Date: Fri, 13 Apr 2001 18:22:13 +0000 (+0000) Subject: @- Fixed crash in pathinfo() X-Git-Tag: php-4.0.6RC1~429 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=9a42a31ba414e7c7d9669ed70c6454c3db2cfe9e;p=php @- Fixed crash in pathinfo() --- diff --git a/ext/standard/string.c b/ext/standard/string.c index 77172441f3..ee632b1636 100644 --- a/ext/standard/string.c +++ b/ext/standard/string.c @@ -902,7 +902,7 @@ PHP_FUNCTION(pathinfo) int idx; p = strrchr(Z_STRVAL_PP(path), '.'); - if (*p) { + if (p) { idx = p - Z_STRVAL_PP(path); add_assoc_stringl(tmp, "extension", Z_STRVAL_PP(path) + idx + 1, len - idx - 1, 1); }