aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDuncaen <mail@duncano.de>2016-07-29 04:31:34 +0200
committerDuncaen <mail@duncano.de>2016-07-29 04:31:34 +0200
commit9ac7a2aeb7d17fdfcb68cc2892870eed021d86d1 (patch)
treed67aef40b05c1989772fc69bd2159ec1e7723533
parent610db145824459a0a77f96dc827831883490b77d (diff)
downloadmblaze-9ac7a2aeb7d17fdfcb68cc2892870eed021d86d1.tar.gz
mpick: fixes
-rw-r--r--mpick.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/mpick.c b/mpick.c
index 221a5ab..3b30787 100644
--- a/mpick.c
+++ b/mpick.c
@@ -679,7 +679,7 @@ parse_msglist(char *s)
case 'S': flag = FLAG_SEEN; break;
case 'o': n = 1; /* FALL TROUGH */
case 'n': flag = FLAG_NEW; break;
- default: parse_error("unknown type at '%.15s'", s);
+ default: flag = 0; parse_error("unknown type at '%.15s'", s);
}
e1 = mkexpr(EXPR_ANYSET);
@@ -811,7 +811,7 @@ eval(struct expr *e, struct mailinfo *m)
switch (e->b.var) {
case VAR_CUR:
if (!cur_idx)
- num = (EXPR_LT || EXPR_LE) ? LONG_MAX : -1;
+ num = (e->op == EXPR_LT || e->op == EXPR_LE) ? LONG_MAX : -1;
else
num = cur_idx;
break;