From 0a975eaff970486a3e8a6d6edac4ce356e35a77c Mon Sep 17 00:00:00 2001 From: toddouska Date: Fri, 24 Jul 2015 15:34:56 -0700 Subject: [PATCH] fix valgrind warning mp_add_d --- wolfcrypt/src/integer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wolfcrypt/src/integer.c b/wolfcrypt/src/integer.c index 48421d0f4..5a79191b6 100644 --- a/wolfcrypt/src/integer.c +++ b/wolfcrypt/src/integer.c @@ -3878,7 +3878,7 @@ int mp_add_d (mp_int* a, mp_digit b, mp_int* c) *tmpc++ &= MP_MASK; } /* set final carry */ - if (mu != 0 && ix < c->alloc) { + if (ix < c->alloc) { ix++; *tmpc++ = mu; }