summaryrefslogtreecommitdiff
path: root/mi
diff options
context:
space:
mode:
authorOri Bernstein <ori@eigenstate.org>2015-12-13 22:31:28 -0800
committerOri Bernstein <ori@eigenstate.org>2015-12-13 22:31:28 -0800
commitb5d42225dec46ce9a0a0d6eaf59c442952455b47 (patch)
tree3734024657434a2e403bdeaa128d4e612f0565f5 /mi
parent8cb3f72ad2c0fe747e5178b7d593380550a07f76 (diff)
downloadmc-b5d42225dec46ce9a0a0d6eaf59c442952455b47.tar.gz
Initialize ret() to 0.
Fix scan-build warning.
Diffstat (limited to 'mi')
-rw-r--r--mi/match.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/mi/match.c b/mi/match.c
index e9bc6d7..f2c2c9c 100644
--- a/mi/match.c
+++ b/mi/match.c
@@ -425,6 +425,7 @@ static int addstr(Node *pat, Node *val, Dtree *start, Dtree *accept, Node ***cap
last = NULL;
nlast = 0;
+ ret = 0;
if (addpat(p, v, start, next, cap, ncap, &last, &nlast))
ret = 1;