summaryrefslogtreecommitdiffstats
path: root/src/eval.c
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@tavianator.com>2024-01-22 15:00:16 -0500
committerTavian Barnes <tavianator@tavianator.com>2024-01-22 15:00:16 -0500
commit5a6cec3dff25ae3ea84a632c3b84adf68c24fce4 (patch)
tree1fad94518a9c5f85516c11623810945d3d2d12a2 /src/eval.c
parent18597572f62ab18824df6bab6c30d2b645921969 (diff)
downloadbfs-5a6cec3dff25ae3ea84a632c3b84adf68c24fce4.tar.xz
eval: Squelch an uninitialized variable warning
Diffstat (limited to 'src/eval.c')
-rw-r--r--src/eval.c4
1 files changed, 3 insertions, 1 deletions
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) {