Commit b7bf7dada15ab76b9d14e30effe209a72dba710c

Steffen Jaeckel 2017-06-06T21:32:01

Merge pull request #77 from serval2412/develop cppcheck: va_list 'args' used before va_start() was called

1
2
3
4
5
6
7
8
9
10
11
12
13
14
diff --git a/bn_mp_init_multi.c b/bn_mp_init_multi.c
index 52220a3..5f93390 100644
--- a/bn_mp_init_multi.c
+++ b/bn_mp_init_multi.c
@@ -31,9 +31,6 @@ int mp_init_multi(mp_int *mp, ...)
             */
             va_list clean_args;
             
-            /* end the current list */
-            va_end(args);
-            
             /* now start cleaning up */            
             cur_arg = mp;
             va_start(clean_args, mp);