kernel32/tests: be sure to terminate array
Austin English
austinenglish at gmail.com
Mon Sep 6 12:58:35 CDT 2010
Otherwise causes undefined behavior (test failures on clang, but not gcc).
See also http://bugs.winehq.org/show_bug.cgi?id=24270.
--
-Austin
-------------- next part --------------
diff --git a/dlls/kernel32/tests/time.c b/dlls/kernel32/tests/time.c
index 0b3959a..5dd0d41 100644
--- a/dlls/kernel32/tests/time.c
+++ b/dlls/kernel32/tests/time.c
@@ -582,6 +582,7 @@ static void test_TzSpecificLocalTimeToSystemTime(void)
, {25,28,2,22,2,22} /* 2017 */
, {24,27,1,28,1,28} /* 2018 */
, {30,26,7,27,7,27} /* 2019 */
+ , {0}
};
for( j=0 , year = 1999; yeardays[j][0] ; j++, year++) {
for (i=0; cases[i].nr; i++) {
More information about the wine-patches
mailing list