diff options
Diffstat (limited to 'libs/libcurl/src/mime.c')
-rw-r--r-- | libs/libcurl/src/mime.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libs/libcurl/src/mime.c b/libs/libcurl/src/mime.c index abadcb02cb..0bf1b46a4c 100644 --- a/libs/libcurl/src/mime.c +++ b/libs/libcurl/src/mime.c @@ -152,14 +152,14 @@ curl_off_t VmsRealFileSize(const char *name, FILE * file; file = fopen(name, FOPEN_READTEXT); /* VMS */ - if(file == NULL) + if(!file) return 0; count = 0; ret_stat = 1; while(ret_stat > 0) { ret_stat = fread(buffer, 1, sizeof(buffer), file); - if(ret_stat != 0) + if(ret_stat) count += ret_stat; } fclose(file); |