comparison cinst/windowsstore.c @ 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 292e2cb60ef0
children 8fb12af98960
comparison
equal deleted inserted replaced
216:4a20bab3f806 217:83a015f2e078
118 if (!to_install) 118 if (!to_install)
119 { 119 {
120 return; 120 return;
121 } 121 }
122 122
123 for (i=0; to_install[i]; i++) 123 for (i = 0; to_install[i]; i++)
124 { 124 {
125 size_t cert_len = strnlen (to_install[i], MAX_LINE_LENGTH), 125 size_t cert_len = strnlen (to_install[i], MAX_LINE_LENGTH),
126 buf_size = 0; 126 buf_size = 0;
127 char *buf = NULL; 127 char *buf = NULL;
128 128
150 { 150 {
151 printf ("Failed to add certificate: %S \n", error); 151 printf ("Failed to add certificate: %S \n", error);
152 LocalFree (error); 152 LocalFree (error);
153 } 153 }
154 } 154 }
155 i++;
156 free (buf); 155 free (buf);
157 } 156 }
158 return; 157 return;
159 } 158 }
160 159

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