# HG changeset patch # User Andre Heinecke # Date 1395861262 -3600 # Node ID 83a015f2e07833efcdd3fa4c35360cc0e442e1c4 # Parent 4a20bab3f806bfaeba1fc4167d818202a10f2dd9 Remove leftover incrementation of i from former loop style. Fixes a crash when adding only one certificate. diff -r 4a20bab3f806 -r 83a015f2e078 cinst/windowsstore.c --- 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;