Mercurial > trustbridge
diff 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 |
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;