aboutsummaryrefslogtreecommitdiffstats
path: root/html.h
diff options
context:
space:
mode:
authorDavid Crosby <dave@dafyddcrosby.com>2015-07-26 06:12:16 +0000
committerTatsuya Kinoshita <tats@debian.org>2015-08-11 12:59:28 +0000
commitdac68e4d90d8259396f6f86d60becd39f7fd9cc5 (patch)
treef3932a821aed4e360105da7c6bd56d2741e88e9f /html.h
parentMove sockent for splint (diff)
downloadw3m-dac68e4d90d8259396f6f86d60becd39f7fd9cc5.tar.gz
w3m-dac68e4d90d8259396f6f86d60becd39f7fd9cc5.zip
Adjust UFclose to remove false positive of CWE-481
Diffstat (limited to 'html.h')
-rw-r--r--html.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/html.h b/html.h
index b4b3df9..c490655 100644
--- a/html.h
+++ b/html.h
@@ -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 {