From 2f7e8c3ffa1ffba30f362638655a51eba060ae61 Mon Sep 17 00:00:00 2001 From: Marcus Brinkmann Date: Mon, 2 Sep 2002 12:29:53 +0000 Subject: [PATCH] 2002-09-02 Marcus Brinkmann * debug.c (_gpgme_debug_add): Test *LINE, not LINE. (_gpgme_debug_end): Likewise. Reported by Dr. Stefan Dalibor . --- trunk/gpgme/ChangeLog | 6 ++++++ trunk/gpgme/debug.c | 4 ++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/trunk/gpgme/ChangeLog b/trunk/gpgme/ChangeLog index fbcc9cd..1f3cbed 100644 --- a/trunk/gpgme/ChangeLog +++ b/trunk/gpgme/ChangeLog @@ -1,3 +1,9 @@ +2002-09-02 Marcus Brinkmann + + * debug.c (_gpgme_debug_add): Test *LINE, not LINE. + (_gpgme_debug_end): Likewise. + Reported by Dr. Stefan Dalibor . + 2002-09-02 Marcus Brinkmann * posix-io.c (_gpgme_io_select): Don't use a non-constant struct diff --git a/trunk/gpgme/debug.c b/trunk/gpgme/debug.c index 06ab1bc..e0c7d89 100644 --- a/trunk/gpgme/debug.c +++ b/trunk/gpgme/debug.c @@ -180,7 +180,7 @@ _gpgme_debug_add (void **line, const char *format, ...) char *toadd; char *result; - if (!line) + if (!*line) return; va_start (arg_ptr, format); @@ -198,7 +198,7 @@ _gpgme_debug_add (void **line, const char *format, ...) void _gpgme_debug_end (void **line) { - if (!line) + if (!*line) return; /* The smallest possible level is 1, so force logging here by -- 2.26.2