From: Felipe Pena Date: Sun, 19 Jul 2009 14:36:16 +0000 (+0000) Subject: - Removed unnecessary strlen() call and if statement. X-Git-Tag: php-5.4.0alpha1~191^2~3061 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=1e842a6791bd5267f5842c1ef739f77b8d399318;p=php - Removed unnecessary strlen() call and if statement. --- diff --git a/ext/curl/interface.c b/ext/curl/interface.c index d07c90814b..040942aa2f 100644 --- a/ext/curl/interface.c +++ b/ext/curl/interface.c @@ -1866,14 +1866,11 @@ type_conflict: char *type; ++postval; - if ((type = php_memnstr(postval, ";type=", sizeof(";type=") - 1, postval + strlen(postval)))) { + if ((type = php_memnstr(postval, ";type=", sizeof(";type=") - 1, postval + Z_STRLEN_PP(current)))) { *type = '\0'; } /* open_basedir check */ if (php_check_open_basedir(postval TSRMLS_CC)) { - if (type) { - *type = ';'; - } RETVAL_FALSE; return 1; }