mirror of
https://github.com/emikulic/darkhttpd.git
synced 2023-08-10 21:13:08 +03:00
Silence -Wparentheses warning.
This commit is contained in:
parent
6c7fb762ac
commit
f41be73a66
@ -1860,7 +1860,7 @@ static void process_get(struct connection *conn) {
|
||||
struct stat filestat;
|
||||
|
||||
/* strip out query params */
|
||||
if (end = strchr(conn->url, '?'))
|
||||
if ((end = strchr(conn->url, '?')) != NULL)
|
||||
*end = '\0';
|
||||
|
||||
/* work out path of file being requested */
|
||||
|
Loading…
Reference in New Issue
Block a user