Dmitry Timoshkov : rsaenh: Avoid double 'va_end(args)' in case of a premature loop termination.

Alexandre Julliard julliard at winehq.org
Thu Jun 22 16:50:51 CDT 2017


Module: wine
Branch: master
Commit: f7fd2c2be10eee71d037cd038eb2d530d9a8f80d
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=f7fd2c2be10eee71d037cd038eb2d530d9a8f80d

Author: Dmitry Timoshkov <dmitry at baikal.ru>
Date:   Thu Jun 22 11:54:07 2017 +0800

rsaenh: Avoid double 'va_end(args)' in case of a premature loop termination.

Signed-off-by: Dmitry Timoshkov <dmitry at baikal.ru>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/rsaenh/mpi.c | 7 ++-----
 1 file changed, 2 insertions(+), 5 deletions(-)

diff --git a/dlls/rsaenh/mpi.c b/dlls/rsaenh/mpi.c
index 03e3102..e05fa59 100644
--- a/dlls/rsaenh/mpi.c
+++ b/dlls/rsaenh/mpi.c
@@ -2365,11 +2365,8 @@ int mp_init_multi(mp_int *mp, ...)
                succeeded in init-ing, then return error.
             */
             va_list clean_args;
-            
-            /* end the current list */
-            va_end(args);
-            
-            /* now start cleaning up */            
+
+            /* now start cleaning up */
             cur_arg = mp;
             va_start(clean_args, mp);
             while (n--) {




More information about the wine-cvs mailing list