aboutsummaryrefslogtreecommitdiffstats
path: root/main/libgpg-error/fix-va_list.patch
blob: 5a8ba016860ec79843e8913b207c45482dbb51ac (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
diff --git a/src/logging.c b/src/logging.c
index 1a4f620..12b9494 100644
--- a/src/logging.c
+++ b/src/logging.c
@@ -1141,7 +1141,7 @@ void
 _gpgrt_log_printhex (const void *buffer, size_t length,
                      const char *fmt, ...)
 {
-  va_list arg_ptr;
+  va_list arg_ptr = {};
 
   if (fmt)
     {
@@ -1150,7 +1150,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, arg_ptr);
 }