pointless check for 'out' being non-NULL, since it was badly done and is
authorDaniel Stenberg <daniel@haxx.se>
Fri, 30 Mar 2007 20:50:31 +0000 (20:50 +0000)
committerDaniel Stenberg <daniel@haxx.se>
Fri, 30 Mar 2007 20:50:31 +0000 (20:50 +0000)
unnecessary - found by coverity.com scan

src/main.c

index 56bc1c7..b4b3bfd 100644 (file)
@@ -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) {