aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2020-02-09 22:22:20 +0000
committerWerner Koch <[email protected]>2020-02-09 22:22:20 +0000
commitd1c518cdc9330c2dd4034efc544de0dd6ec73ea1 (patch)
tree4d9f8f61e745b81a6112f6c031574ccfcdf3876e
parentcommon: New function get_keyalgo_string. (diff)
downloadgnupg-d1c518cdc9330c2dd4034efc544de0dd6ec73ea1.tar.gz
gnupg-d1c518cdc9330c2dd4034efc544de0dd6ec73ea1.zip
common: Remove duplicated call to a function.
* common/openpgp-oid.c (openpgp_oid_to_str): Remove duplicated call. -- The removed function was already called. No memleak etc, though. Fixes-commit: 4a1558d0c7190cf13d35385e47291a7aa121be3e Signed-off-by: Werner Koch <[email protected]>
-rw-r--r--common/openpgp-oid.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/common/openpgp-oid.c b/common/openpgp-oid.c
index b539f8588..412a03b4d 100644
--- a/common/openpgp-oid.c
+++ b/common/openpgp-oid.c
@@ -297,7 +297,6 @@ openpgp_oid_to_str (gcry_mpi_t a)
return NULL;
}
- buf = gcry_mpi_get_opaque (a, &lengthi);
return openpgp_oidbuf_to_str (buf, (lengthi+7)/8);
}