summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJustus Winter <justus@g10code.com>2017-01-30 17:08:27 +0100
committerJustus Winter <justus@g10code.com>2017-01-30 17:09:41 +0100
commitd27a4435bd8c0f0971d51ddf454422fc77d48271 (patch)
tree1083e71b1b097b919462613c35399f3fae1b474c
parentgpgscm: Introduce macro for the vector length. (diff)
downloadgnupg2-d27a4435bd8c0f0971d51ddf454422fc77d48271.tar.xz
gnupg2-d27a4435bd8c0f0971d51ddf454422fc77d48271.zip
gpgscm: Fix setting the line of the first gc reservation.
* tests/gpgscm/scheme.c (_gc_disable): Negate guard. Signed-off-by: Justus Winter <justus@g10code.com>
-rw-r--r--tests/gpgscm/scheme.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/gpgscm/scheme.c b/tests/gpgscm/scheme.c
index 7bb03e825..311f6062f 100644
--- a/tests/gpgscm/scheme.c
+++ b/tests/gpgscm/scheme.c
@@ -794,7 +794,7 @@ _gc_disable(struct scheme *sc, size_t reserve, int lineno)
if (sc->inhibit_gc == 0) {
reserve_cells(sc, (reserve));
sc->reserved_cells = (reserve);
-#ifndef NDEBUG
+#ifdef NDEBUG
(void) lineno;
#else
sc->reserved_lineno = lineno;