aboutsummaryrefslogtreecommitdiff
path: root/tests/tests2/30_hanoi.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/tests2/30_hanoi.c')
-rw-r--r--tests/tests2/30_hanoi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/tests2/30_hanoi.c b/tests/tests2/30_hanoi.c
index b1a1181..7c0893b 100644
--- a/tests/tests2/30_hanoi.c
+++ b/tests/tests2/30_hanoi.c
@@ -68,7 +68,7 @@ void PrintAll()
/* Returns the value moved (not used.) */
int Move(int *source, int *dest)
{
- int i,j;
+ int i = 0, j = 0;
while (i<N && (source[i])==0) i++;
while (j<N && (dest[j])==0) j++;