gpgscm: Fix setting the line of the first gc reservation.
authorJustus Winter <justus@g10code.com>
Mon, 30 Jan 2017 16:08:27 +0000 (17:08 +0100)
committerJustus Winter <justus@g10code.com>
Mon, 30 Jan 2017 16:09:41 +0000 (17:09 +0100)
* tests/gpgscm/scheme.c (_gc_disable): Negate guard.

Signed-off-by: Justus Winter <justus@g10code.com>
tests/gpgscm/scheme.c

index 7bb03e8..311f606 100644 (file)
@@ -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;