brain wrecked
[m6w6/ext-http] / php_http_url.c
index 09f94ec30494a549215a62f6e668c6d12cfa7fff..4263aab6a068d7e961243a8608e751c3c4a7df1c 100644 (file)
@@ -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;
        }