From dac68e4d90d8259396f6f86d60becd39f7fd9cc5 Mon Sep 17 00:00:00 2001 From: David Crosby Date: Sun, 26 Jul 2015 00:12:16 -0600 Subject: Adjust UFclose to remove false positive of CWE-481 --- html.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 { -- cgit v1.2.3