summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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) {