From eacb6502617d4330cffe43ad57878b8902676397 Mon Sep 17 00:00:00 2001 From: Michael Wallner Date: Thu, 30 Oct 2014 18:54:02 +0100 Subject: [PATCH] brain wrecked --- php_http_url.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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; } -- 2.30.2