gpgscm: Build well even if NDEBUG defined.
authorNIIBE Yutaka <gniibe@fsij.org>
Mon, 25 Feb 2019 01:44:16 +0000 (10:44 +0900)
committerNIIBE Yutaka <gniibe@fsij.org>
Mon, 25 Feb 2019 01:44:16 +0000 (10:44 +0900)
commite140c6d4f581be1a60a34b67b16430452f3987e8
tree2908b96801849afcd6869499497188526a579076
parent611faf1579a56925994d53eb08e1290a4b3958cf
gpgscm: Build well even if NDEBUG defined.

* gpgscm/scheme.c (gc_reservation_failure): Fix adding ";".
[!NDEBUG] (scheme_init_custom_alloc): Don't init seserved_lineno.

--

Picked from libgpg-error commit of:
8a9397896fd202dcfb3fb46259e43bc05a0ddd2e

In some build environment, NDEBUG is defined (although it's
bad practice).  This change supports such a situation.

GnuPG-bug-id: 3959
Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
tests/gpgscm/scheme.c