From: Daniel Stenberg Date: Fri, 30 Mar 2007 20:50:31 +0000 (+0000) Subject: pointless check for 'out' being non-NULL, since it was badly done and is X-Git-Tag: curl-7_16_2~87 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6fc151577e39ccfefc63342e6cbaf752238c0478;p=thirdparty%2Fcurl.git pointless check for 'out' being non-NULL, since it was badly done and is unnecessary - found by coverity.com scan --- diff --git a/src/main.c b/src/main.c index 56bc1c7bf0..b4b3bfd8d9 100644 --- a/src/main.c +++ b/src/main.c @@ -2799,7 +2799,7 @@ static size_t my_fwrite(void *buffer, size_t sz, size_t nmemb, void *stream) struct OutStruct *out=(struct OutStruct *)stream; struct Configurable *config = out->config; - if(out && !out->stream) { + if(!out->stream) { /* open file for writing */ out->stream=fopen(out->filename, "wb"); if(!out->stream) {