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;
}
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;
}