aboutsummaryrefslogtreecommitdiffstats
path: root/src/debug.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/debug.c')
-rw-r--r--src/debug.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/debug.c b/src/debug.c
index d7604a7c..37baabb0 100644
--- a/src/debug.c
+++ b/src/debug.c
@@ -379,6 +379,9 @@ _gpgme_debug_buffer (int lvl, const char *const fmt,
if (!_gpgme_debug_trace ())
return;
+ if (!buffer)
+ return;
+
while (idx < len)
{
char str[51];