From: Michael Wallner Date: Thu, 30 Oct 2014 17:54:02 +0000 (+0100) Subject: brain wrecked X-Git-Tag: RELEASE_2_2_0_RC1~9^2~13 X-Git-Url: https://git.m6w6.name/?a=commitdiff_plain;h=eacb6502617d4330cffe43ad57878b8902676397;p=m6w6%2Fext-http brain wrecked --- diff --git a/php_http_url.c b/php_http_url.c index 09f94ec..4263aab 100644 --- a/php_http_url.c +++ b/php_http_url.c @@ -726,8 +726,8 @@ static const char *parse_query(php_http_url_t *url) const char *tmp = url->ptr + !!*url->ptr; TSRMLS_FETCH_FROM_CTX(url->ts); - /* is there actually a query to parse ? */ - if (!*url->ptr && *url->ptr != '?') { + /* is there actually a query to parse? */ + if (*url->ptr != '?') { return url->ptr; } @@ -790,8 +790,8 @@ static const char *parse_fragment(php_http_url_t *url) const char *tmp; TSRMLS_FETCH_FROM_CTX(url->ts); - /* is there actually a fragment to parse */ - if (!*url->ptr && *url->ptr != '#') { + /* is there actually a fragment to parse? */ + if (*url->ptr != '#') { return url->ptr; }