libgpg-error: fix compilation with armv*/aarch64*.

Closes: #12588 [via git-merge-pr]
This commit is contained in:
maxice8 2018-03-16 08:26:48 -03:00 committed by Jürgen Buchmüller
parent d4c861fb54
commit 3a4a1d6c5d

View file

@ -0,0 +1,19 @@
--- src/logging.c
+++ src/logging.c
@@ -1142,6 +1142,7 @@ _gpgrt_log_printhex (const void *buffer, size_t length,
const char *fmt, ...)
{
va_list arg_ptr;
+ va_list empty_va_list;
if (fmt)
{
@@ -1150,7 +1151,7 @@ _gpgrt_log_printhex (const void *buffer, size_t length,
va_end (arg_ptr);
}
else
- _gpgrt_logv_printhex (buffer, length, NULL, NULL);
+ _gpgrt_logv_printhex (buffer, length, NULL, empty_va_list);
}