Commit 287cdf54c2a9746838c55812f0cd8fb34141359f

Steffen Jaeckel 2019-09-08T13:45:24

Merge pull request #346 from fperrad/20190907_fix fix mp_to_radix

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/bn_mp_to_radix.c b/bn_mp_to_radix.c
index 6b03ee7..ca9c0fa 100644
--- a/bn_mp_to_radix.c
+++ b/bn_mp_to_radix.c
@@ -66,8 +66,6 @@ mp_err mp_to_radix(const mp_int *a, char *str, size_t maxlen, int radix)
    /* append a NULL so the string is properly terminated */
    *str = '\0';
 
-   err = MP_OKAY;
-
 LBL_ERR:
    mp_clear(&t);
    return err;