From: Zbigniew Jędrzejewski-Szmek Date: Tue, 21 Feb 2017 16:15:27 +0000 (-0500) Subject: basic/fileio: use IN_SET X-Git-Tag: v233~48^2~1 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=371328dc748c284f5e4e69b7f6554ab14bb63319;p=thirdparty%2Fsystemd.git basic/fileio: use IN_SET --- diff --git a/src/basic/fileio.c b/src/basic/fileio.c index 13c03b4f559..7c2c2b38f51 100644 --- a/src/basic/fileio.c +++ b/src/basic/fileio.c @@ -554,13 +554,14 @@ static int parse_env_file_internal( } } - if (state == PRE_VALUE || - state == VALUE || - state == VALUE_ESCAPE || - state == SINGLE_QUOTE_VALUE || - state == SINGLE_QUOTE_VALUE_ESCAPE || - state == DOUBLE_QUOTE_VALUE || - state == DOUBLE_QUOTE_VALUE_ESCAPE) { + if (IN_SET(state, + PRE_VALUE, + VALUE, + VALUE_ESCAPE, + SINGLE_QUOTE_VALUE, + SINGLE_QUOTE_VALUE_ESCAPE, + DOUBLE_QUOTE_VALUE, + DOUBLE_QUOTE_VALUE_ESCAPE)) { key[n_key] = 0;