Fix variable initialization
authorYang Tse <yangsita@gmail.com>
Thu, 4 Feb 2010 14:50:58 +0000 (14:50 +0000)
committerYang Tse <yangsita@gmail.com>
Thu, 4 Feb 2010 14:50:58 +0000 (14:50 +0000)
tests/libtest/lib557.c

index c9400a6..d09b567 100644 (file)
@@ -219,7 +219,7 @@ static int test_signed_short_formatting(void)
 
 #if (SIZEOF_SHORT == 1)
 
-  i++; ss_test[i].num = 0x7F; ss_test[i].expected = "127";
+  i=1; ss_test[i].num = 0x7F; ss_test[i].expected = "127";
 
   i++; ss_test[i].num = 0x70; ss_test[i].expected = "112";
   i++; ss_test[i].num = 0x07; ss_test[i].expected = "7";