783dd27a95f3a981238a58d0b77025bb67fa2527 — Pavel Shlyak 11 months ago 7fc12bb
Fix typo

https://github.com/emersion/mrsh/issues/73 part 2
1 files changed, 1 insertions(+), 1 deletions(-)

M parser/arithm.c
M parser/arithm.c => parser/arithm.c +1 -1
@@ 212,7 212,7 @@ static struct mrsh_arithm_expr *shift(struct mrsh_parser *state) {
 	}
 
 	struct mrsh_arithm_expr *right = shift(state);
-	if (left == NULL) {
+	if (right == NULL) {
 		mrsh_arithm_expr_destroy(left);
 		parser_set_error(state, "expected a term");
 		return NULL;