aboutsummaryrefslogtreecommitdiff
path: root/src/tool_operate.c
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2015-06-02 08:28:10 +0200
committerDaniel Stenberg <daniel@haxx.se>2015-06-02 08:28:10 +0200
commit33ee4118483111876c00e68004bc50674992eda2 (patch)
tree66e7040773cd32fd87e4f696c73f49e737dc25eb /src/tool_operate.c
parent3bbcb4b03605bafa0d8e79f82240b1bc8de7a7e7 (diff)
checksrc: detect fopen() for text without the FOPEN_* macros
Follow-up to e8423f9ce150 with discussionis in https://github.com/bagder/curl/pull/258 This check scans for fopen() with a mode string without 'b' present, as it may indicate that an FOPEN_* define should rather be used.
Diffstat (limited to 'src/tool_operate.c')
-rw-r--r--src/tool_operate.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tool_operate.c b/src/tool_operate.c
index 4c3ed077b..fea587bc9 100644
--- a/src/tool_operate.c
+++ b/src/tool_operate.c
@@ -151,7 +151,7 @@ static curl_off_t vms_realfilesize(const char * name,
int ret_stat;
FILE * file;
- file = fopen(name, "r");
+ file = fopen(name, "r"); /* VMS */
if(file == NULL) {
return 0;
}