diff options
author | Marcus Brinkmann <[email protected]> | 2002-09-02 12:29:53 +0000 |
---|---|---|
committer | Marcus Brinkmann <[email protected]> | 2002-09-02 12:29:53 +0000 |
commit | 1b40ede2c5ac48419c2f8cfa8aaa7ea239541ca1 (patch) | |
tree | 735de69cb0388f3485c072b6a0e4803d2b2421b3 | |
parent | Wrap the lines nicer. (diff) | |
download | gpgme-1b40ede2c5ac48419c2f8cfa8aaa7ea239541ca1.tar.gz gpgme-1b40ede2c5ac48419c2f8cfa8aaa7ea239541ca1.zip |
2002-09-02 Marcus Brinkmann <[email protected]>
* debug.c (_gpgme_debug_add): Test *LINE, not LINE.
(_gpgme_debug_end): Likewise.
Reported by Dr. Stefan Dalibor <[email protected]>.
-rw-r--r-- | gpgme/ChangeLog | 6 | ||||
-rw-r--r-- | gpgme/debug.c | 4 |
2 files changed, 8 insertions, 2 deletions
diff --git a/gpgme/ChangeLog b/gpgme/ChangeLog index fbcc9cd6..1f3cbed8 100644 --- a/gpgme/ChangeLog +++ b/gpgme/ChangeLog @@ -1,5 +1,11 @@ 2002-09-02 Marcus Brinkmann <[email protected]> + * debug.c (_gpgme_debug_add): Test *LINE, not LINE. + (_gpgme_debug_end): Likewise. + Reported by Dr. Stefan Dalibor <[email protected]>. + +2002-09-02 Marcus Brinkmann <[email protected]> + * posix-io.c (_gpgme_io_select): Don't use a non-constant struct initializer. * version.c (_gpgme_get_program_version): Likewise. diff --git a/gpgme/debug.c b/gpgme/debug.c index 06ab1bc8..e0c7d89e 100644 --- a/gpgme/debug.c +++ b/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 |