changeset 217:83a015f2e078

Remove leftover incrementation of i from former loop style. Fixes a crash when adding only one certificate.
author Andre Heinecke <andre.heinecke@intevation.de>
date Wed, 26 Mar 2014 20:14:22 +0100
parents 4a20bab3f806
children 8fb12af98960
files cinst/windowsstore.c
diffstat 1 files changed, 1 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/cinst/windowsstore.c	Wed Mar 26 20:12:15 2014 +0100
+++ b/cinst/windowsstore.c	Wed Mar 26 20:14:22 2014 +0100
@@ -120,7 +120,7 @@
       return;
     }
 
-  for (i=0; to_install[i]; i++)
+  for (i = 0; to_install[i]; i++)
     {
       size_t cert_len = strnlen (to_install[i], MAX_LINE_LENGTH),
              buf_size = 0;
@@ -152,7 +152,6 @@
               LocalFree (error);
             }
         }
-      i++;
       free (buf);
     }
   return;

http://wald.intevation.org/projects/trustbridge/