From 0cd9f5da6c770e971c3156cabdb0d2e627338ab2 Mon Sep 17 00:00:00 2001 From: Jerome Benoit Date: Sun, 26 Feb 2017 11:47:04 +0100 Subject: [PATCH] exo3.c: Properly initalize a for loop count integer variable. Signed-off-by: Jerome Benoit --- exo3/exo3.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/exo3/exo3.c b/exo3/exo3.c index 89170ea..03d6390 100644 --- a/exo3/exo3.c +++ b/exo3/exo3.c @@ -32,7 +32,7 @@ void permAlphaChar(char* str, int key) { char alphabet[26] = "abcdefghijklmnopqrstuvwxyz"; int str_length = stringLength(str); - for (int i; i < str_length; i++) { + for (int i = 0; i < str_length; i++) { //if (str[i] == ' ') continue; for (int j = 0; j < 26; j++) { if (str[i] == alphabet[j]) { -- 2.34.1