aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMarcus Brinkmann <[email protected]>2012-07-27 23:17:03 +0000
committerMarcus Brinkmann <[email protected]>2012-07-27 23:17:03 +0000
commit434735f71e6969248651ac01c6bd6f6789a6305d (patch)
tree5b23b8bfa10a60a90102c8ee7bf3d25aefedb670 /src
parentDo not include the removed file status-table.h (diff)
downloadgpgme-434735f71e6969248651ac01c6bd6f6789a6305d.tar.gz
gpgme-434735f71e6969248651ac01c6bd6f6789a6305d.zip
Allow null context on gpgme_set_locale.
* gpgme.c (gpgme_set_locale): Allow CTX to be a null pointer.
Diffstat (limited to 'src')
-rw-r--r--src/gpgme.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/src/gpgme.c b/src/gpgme.c
index c8e6a8b7..927b2a09 100644
--- a/src/gpgme.c
+++ b/src/gpgme.c
@@ -639,9 +639,6 @@ gpgme_set_locale (gpgme_ctx_t ctx, int category, const char *value)
TRACE_BEG2 (DEBUG_CTX, "gpgme_set_locale", ctx,
"category=%i, value=%s", category, value ? value : "(null)");
- if (!ctx)
- return TRACE_ERR (gpg_error (GPG_ERR_INV_VALUE));
-
#define PREPARE_ONE_LOCALE(lcat, ucat) \
if (!failed && value \
&& (category == LC_ALL || category == LC_ ## ucat)) \