mirror of
https://github.com/moparisthebest/curl
synced 2024-12-22 16:18:48 -05:00
pointless check for 'out' being non-NULL, since it was badly done and is
unnecessary - found by coverity.com scan
This commit is contained in:
parent
3dcc7202d5
commit
6fc151577e
@ -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 OutStruct *out=(struct OutStruct *)stream;
|
||||||
struct Configurable *config = out->config;
|
struct Configurable *config = out->config;
|
||||||
|
|
||||||
if(out && !out->stream) {
|
if(!out->stream) {
|
||||||
/* open file for writing */
|
/* open file for writing */
|
||||||
out->stream=fopen(out->filename, "wb");
|
out->stream=fopen(out->filename, "wb");
|
||||||
if(!out->stream) {
|
if(!out->stream) {
|
||||||
|
Loading…
Reference in New Issue
Block a user