From: Giuseppe Scrivano Date: Wed, 30 Oct 2013 20:20:50 +0000 (+0100) Subject: Remove assert which is always true X-Git-Tag: v1.15~11 X-Git-Url: http://sjero.net/git/?p=wget;a=commitdiff_plain;h=42c15e47b45a239ca8150222757288bca0a4d700 Remove assert which is always true --- diff --git a/src/ChangeLog b/src/ChangeLog index 566db745..73ae4ee9 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,8 @@ +2013-10-30 Giuseppe Scrivano + + * http.c (skip_short_body): Remove assert which is always true. + Reported by: David Binderman + 2013-10-17 Andrea Urbani * ftp.c (getftp): force "LIST" or "LIST -a" diff --git a/src/http.c b/src/http.c index 6b042a7e..dbfcdfbf 100644 --- a/src/http.c +++ b/src/http.c @@ -924,8 +924,6 @@ skip_short_body (int fd, wgint contlen, bool chunked) char dlbuf[SKIP_SIZE + 1]; dlbuf[SKIP_SIZE] = '\0'; /* so DEBUGP can safely print it */ - assert (contlen != -1 || contlen); - /* If the body is too large, it makes more sense to simply close the connection than to try to read the body. */ if (contlen > SKIP_THRESHOLD)