summaryrefslogtreecommitdiffstats
path: root/src/parse.c
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@tavianator.com>2023-05-08 14:18:37 -0400
committerTavian Barnes <tavianator@tavianator.com>2023-05-08 14:18:37 -0400
commit3f1822caed3dca731997c8739c19ee32e5caadc1 (patch)
tree49c84b1cd4119b7925ca4d4d82772fa834f4bf6e /src/parse.c
parentc1b16b49988ecff17ae30978ea14798d95b80018 (diff)
downloadbfs-3f1822caed3dca731997c8739c19ee32e5caadc1.tar.xz
config: Hoist the assignment outside of BFS_UNINIT()
Diffstat (limited to 'src/parse.c')
-rw-r--r--src/parse.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/parse.c b/src/parse.c
index 30bf56d..9540e83 100644
--- a/src/parse.c
+++ b/src/parse.c
@@ -1962,11 +1962,11 @@ static int parse_mode(const struct parser_state *state, const char *mode, struct
MODE_PLUS,
MODE_MINUS,
MODE_EQUALS,
- } BFS_UNINIT(op, MODE_EQUALS);
+ } op = BFS_UNINIT(op, MODE_EQUALS);
- mode_t BFS_UNINIT(who, 0);
- mode_t BFS_UNINIT(file_change, 0);
- mode_t BFS_UNINIT(dir_change, 0);
+ mode_t who = BFS_UNINIT(who, 0);
+ mode_t file_change = BFS_UNINIT(file_change, 0);
+ mode_t dir_change = BFS_UNINIT(dir_change, 0);
const char *i = mode;
while (true) {