aboutsummaryrefslogtreecommitdiffstats
path: root/tests/gpgscm/scheme.c
diff options
context:
space:
mode:
authorJustus Winter <[email protected]>2017-01-30 16:08:27 +0000
committerJustus Winter <[email protected]>2017-01-30 16:09:41 +0000
commitd27a4435bd8c0f0971d51ddf454422fc77d48271 (patch)
tree1083e71b1b097b919462613c35399f3fae1b474c /tests/gpgscm/scheme.c
parentgpgscm: Introduce macro for the vector length. (diff)
downloadgnupg-d27a4435bd8c0f0971d51ddf454422fc77d48271.tar.gz
gnupg-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 <[email protected]>
Diffstat (limited to 'tests/gpgscm/scheme.c')
-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;