diff options
author | Werner Koch <wk@gnupg.org> | 2015-06-26 12:06:31 +0200 |
---|---|---|
committer | Werner Koch <wk@gnupg.org> | 2015-06-26 12:06:31 +0200 |
commit | cd8face27cc96cb0092c920e6e5bdee81a61c420 (patch) | |
tree | 2b7470d9361ae2fb2089bb6172a564678bfc3626 | |
parent | 0da6afa864cfd68333941d6332d762c82928946c (diff) | |
download | libassuan-cd8face27cc96cb0092c920e6e5bdee81a61c420.tar.gz |
Return GPG_ERR_SOURCE_ASSUAN on errors with no CTX.
* src/assuan-defs.h (_assuan_error): Use error source Assuan if no CTX
is given.
Signed-off-by: Werner Koch <wk@gnupg.org>
-rw-r--r-- | src/assuan-defs.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/assuan-defs.h b/src/assuan-defs.h index 3dec3df..68cd810 100644 --- a/src/assuan-defs.h +++ b/src/assuan-defs.h @@ -228,7 +228,7 @@ struct assuan_context_s static GPG_ERR_INLINE gpg_error_t _assuan_error (assuan_context_t ctx, gpg_err_code_t errcode) { - return gpg_err_make (ctx?ctx->err_source:0, errcode); + return gpg_err_make (ctx?ctx->err_source: GPG_ERR_SOURCE_ASSUAN, errcode); } /* Release all resources associated with an engine operation. */ |