22 lines
681 B
Diff
22 lines
681 B
Diff
From e9eb22f4cdebd7e262007d795fd3d0341dccc174 Mon Sep 17 00:00:00 2001
|
|
From: Kim Vandry <vandry@TZoNE.ORG>
|
|
Date: Mon, 14 Aug 2017 22:08:25 +0100
|
|
Subject: [PATCH] Fix another regression with nvp parsing introduced in 1305fc1
|
|
|
|
If we get two terminators in a row, don't carry out last_action twice.
|
|
|
|
Fixes vandry/mairix#5
|
|
|
|
--- nvp.c
|
|
+++ nvp.c
|
|
@@ -307,6 +307,9 @@ struct nvp *make_nvp(struct msg_src *src, char *s, const char *pfx)/*{{{*/
|
|
default:
|
|
break;
|
|
}
|
|
+ /* Clear last_action so we don't repeat the action if we
|
|
+ get another terminator immediately. */
|
|
+ last_action = GOT_NOTHING;
|
|
break;
|
|
case GOT_NOTHING:
|
|
|