diff options
author | David Crosby <dave@dafyddcrosby.com> | 2015-07-26 06:12:16 +0000 |
---|---|---|
committer | Tatsuya Kinoshita <tats@debian.org> | 2015-08-11 12:59:28 +0000 |
commit | dac68e4d90d8259396f6f86d60becd39f7fd9cc5 (patch) | |
tree | f3932a821aed4e360105da7c6bd56d2741e88e9f /html.h | |
parent | Move sockent for splint (diff) | |
download | w3m-dac68e4d90d8259396f6f86d60becd39f7fd9cc5.tar.gz w3m-dac68e4d90d8259396f6f86d60becd39f7fd9cc5.zip |
Adjust UFclose to remove false positive of CWE-481
Diffstat (limited to 'html.h')
-rw-r--r-- | html.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -12,7 +12,7 @@ #define StrmyUFgets(f) StrmyISgets((f)->stream) #define UFgetc(f) ISgetc((f)->stream) #define UFundogetc(f) ISundogetc((f)->stream) -#define UFclose(f) (void)(ISclose((f)->stream) == 0 && ((f)->stream = NULL)) +#define UFclose(f) if (ISclose((f)->stream) == 0) {(f)->stream = NULL ;} #define UFfileno(f) ISfileno((f)->stream) struct cmdtable { |