diff options
author | Tavian Barnes <tavianator@tavianator.com> | 2024-01-22 15:00:16 -0500 |
---|---|---|
committer | Tavian Barnes <tavianator@tavianator.com> | 2024-01-22 15:00:16 -0500 |
commit | 5a6cec3dff25ae3ea84a632c3b84adf68c24fce4 (patch) | |
tree | 1fad94518a9c5f85516c11623810945d3d2d12a2 | |
parent | 18597572f62ab18824df6bab6c30d2b645921969 (diff) | |
download | bfs-5a6cec3dff25ae3ea84a632c3b84adf68c24fce4.tar.xz |
eval: Squelch an uninitialized variable warning
-rw-r--r-- | src/eval.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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) { |