checksrc: detect fopen() for text without the FOPEN_* macros

Follow-up to e8423f9ce1 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.
This commit is contained in:
Daniel Stenberg 2015-06-02 08:28:10 +02:00
parent 3bbcb4b036
commit 33ee411848
5 changed files with 17 additions and 4 deletions

View file

@ -1,3 +1,3 @@
* 'name=@filename,filename2,filename3'
* 'name=@filename;type=image/gif,filename2,filename3'
file = fopen(name, "r"); /* VMS */

View file

@ -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;
}