netutils/thttpd: Fix a malformed if condition detected by GCC 6.x.x

This commit is contained in:
Gregory Nutt 2017-08-12 16:55:51 -06:00
parent 0bc7bce916
commit 15eb6dd518

View File

@ -3409,7 +3409,7 @@ int httpd_start_request(httpd_conn *hc, struct timeval *nowP)
else
{
hc->file_fd = open(hc->expnfilename, O_RDONLY);
if (!hc->file_fd < 0)
if (hc->file_fd < 0)
{
INTERNALERROR(hc->expnfilename);
httpd_send_err(hc, 500, err500title, "", err500form, hc->encodedurl);