aboutsummaryrefslogtreecommitdiffstats
path: root/gpgme/rungpg.c
diff options
context:
space:
mode:
Diffstat (limited to 'gpgme/rungpg.c')
-rw-r--r--gpgme/rungpg.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gpgme/rungpg.c b/gpgme/rungpg.c
index 33c46eda..44db825d 100644
--- a/gpgme/rungpg.c
+++ b/gpgme/rungpg.c
@@ -1356,7 +1356,7 @@ gpg_edit (void *engine, int type, gpgme_key_t key, gpgme_data_t out,
err = add_data (gpg, out, 1, 1);
if (!err)
err = add_arg (gpg, "--");
- if (!err)
+ if (!err && type == 0)
{
const char *s = key->subkeys ? key->subkeys->fpr : NULL;
if (!s)