From 5a6cec3dff25ae3ea84a632c3b84adf68c24fce4 Mon Sep 17 00:00:00 2001 From: Tavian Barnes Date: Mon, 22 Jan 2024 15:00:16 -0500 Subject: eval: Squelch an uninitialized variable warning --- src/eval.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/eval.c') diff --git a/src/eval.c b/src/eval.c index 1a814b3..6dc73d8 100644 --- a/src/eval.c +++ b/src/eval.c @@ -21,6 +21,7 @@ #include "mtab.h" #include "printf.h" #include "pwcache.h" +#include "sanity.h" #include "stat.h" #include "trie.h" #include "xregex.h" @@ -1084,7 +1085,8 @@ bool eval_or(const struct bfs_expr *expr, struct bfs_eval *state) { * Evaluate the comma operator. */ bool eval_comma(const struct bfs_expr *expr, struct bfs_eval *state) { - bool ret; + bool ret = uninit(ret, false); + for (struct bfs_expr *child = bfs_expr_children(expr); child; child = child->next) { ret = eval_expr(child, state); if (state->quit) { -- cgit v1.2.3