projects
/
platform
/
upstream
/
curl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3dcc720
)
pointless check for 'out' being non-NULL, since it was badly done and is
author
Daniel Stenberg
<daniel@haxx.se>
Fri, 30 Mar 2007 20:50:31 +0000
(20:50 +0000)
committer
Daniel Stenberg
<daniel@haxx.se>
Fri, 30 Mar 2007 20:50:31 +0000
(20:50 +0000)
unnecessary - found by coverity.com scan
src/main.c
patch
|
blob
|
history
diff --git
a/src/main.c
b/src/main.c
index
56bc1c7
..
b4b3bfd
100644
(file)
--- 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) {