aboutsummaryrefslogtreecommitdiffstats
path: root/src/gpgme.c
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2018-11-16 17:17:22 +0000
committerWerner Koch <[email protected]>2018-11-16 17:17:22 +0000
commit7a1e7006d06fdbab86ea79a197c316744b09d933 (patch)
tree13e878cc63d2c9116f58307b38ea8c49ccba7097 /src/gpgme.c
parentcore: Fix a LF problem in the new debug fucntion. (diff)
downloadgpgme-7a1e7006d06fdbab86ea79a197c316744b09d933.tar.gz
gpgme-7a1e7006d06fdbab86ea79a197c316744b09d933.zip
core: Protect the trace macros for fun and profit.
* src/debug.h: Protect macros using. (_trace_err, _trace_sysres, _trace_syserr): New helper inline functions. Signed-off-by: Werner Koch <[email protected]>
Diffstat (limited to 'src/gpgme.c')
-rw-r--r--src/gpgme.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gpgme.c b/src/gpgme.c
index c4a1da11..a0a6c6bc 100644
--- a/src/gpgme.c
+++ b/src/gpgme.c
@@ -159,7 +159,8 @@ gpgme_new (gpgme_ctx_t *r_ctx)
*r_ctx = ctx;
- return TRACE_SUC ("ctx=%p", ctx);
+ TRACE_SUC ("ctx=%p", ctx);
+ return 0;
}