aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/assuan-defs.h2
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. */