Commit 42ed88e7 authored by Daniel Stenberg's avatar Daniel Stenberg
Browse files

curl: fix potential NULL dereference

Coverity CID 1299428: Dereference after null check (FORWARD_NULL)
parent 84d811f6
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1497,7 +1497,7 @@ static CURLcode operate_do(struct GlobalConfig *global,
                if(retry_sleep > RETRY_SLEEP_MAX)
                  retry_sleep = RETRY_SLEEP_MAX;
              }
              if(outs.bytes && outs.filename) {
              if(outs.bytes && outs.filename && outs.stream) {
                /* We have written data to a output file, we truncate file
                 */
                if(!global->mute)