#986019 decode.c: define "ostate" when "DEC_DEBUG" is defined

Package:
src:nn
Source:
nn
Submitter:
Bjarni Ingi Gislason
Date:
2021-03-27 23:03:03 UTC
Severity:
normal
Tags:
#986019#5
Date:
2021-03-27 22:59:57 UTC
From:
To:
Dear Maintainer,

  "ostate" is the previous value of "state", and only used when
debugging is on.

Signed-off-by: Bjarni Ingi Gislason <bjarniig@rhi.hi.is>
---
 decode.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/decode.c b/decode.c
index 3047e42..0c3616e 100644
--- a/decode.c
+++ b/decode.c
@@ -71,6 +71,8 @@ static int      state, arcpart;
 #define MIN_DECODE_LEADING 8	/* lines to decode ok when doing skip-leading */

 #ifdef DEC_DEBUG
+static int	ostate = 0; /* previous (old) value of "state" */
+
 char           *state_tbl[] = {
     "-", "decode", "find begin", "find a/error", "find a/include",
     "new begin", "found end", "found include", "skip leading",