diff options
author | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2017-02-21 11:15:27 -0500 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2017-02-21 11:15:51 -0500 |
commit | 371328dc748c284f5e4e69b7f6554ab14bb63319 (patch) | |
tree | f8154a8cd2839f8300091fe8dd5a628c7f2419a1 /src/basic | |
parent | 2ea8081a5543e608e747426e01bda14f45e9591b (diff) |
basic/fileio: use IN_SET
Diffstat (limited to 'src/basic')
-rw-r--r-- | src/basic/fileio.c | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/src/basic/fileio.c b/src/basic/fileio.c index 13c03b4f55..7c2c2b38f5 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; |