From fec5929f8b0479be780dd730f276b8c9738ac48e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Zbigniew=20J=C4=99drzejewski-Szmek?= Date: Tue, 22 Sep 2020 13:05:31 +0200 Subject: [PATCH] shared/conf-parser: drop redundant cast to boolean parse_boolean returns either 0 or 1 or error, and we checked for errors earlier already. --- src/shared/conf-parser.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/shared/conf-parser.c b/src/shared/conf-parser.c index 90f08252ab..02a27e3a88 100644 --- a/src/shared/conf-parser.c +++ b/src/shared/conf-parser.c @@ -703,7 +703,7 @@ int config_parse_tristate( return 0; } - *t = !!k; + *t = k; return 0; }