]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Fix tst_wcscpy.c test.
authorMarek Polacek <polacek@redhat.com>
Wed, 21 Jan 2015 11:30:42 +0000 (12:30 +0100)
committerMarek Polacek <polacek@redhat.com>
Wed, 21 Jan 2015 11:30:42 +0000 (12:30 +0100)
localedata/ChangeLog
localedata/tests-mbwc/tst_wcscpy.c

index 448f8fb50ede77ed6be2f9c85e82aa5efe588fad..9c2c2c8a32b022fd7031614d67ade0b975d0a689 100644 (file)
@@ -1,3 +1,7 @@
+2015-01-21  Marek Polacek  <polacek@redhat.com>
+
+       * tests-mbwc/tst_wcscpy.c (tst_wcscpy): Fix condition.
+
 2015-01-02  Joseph Myers  <joseph@codesourcery.com>
 
        * All files with FSF copyright notices: Update copyright dates
index d5705a55dcfcb6f2ab0c9673862034df18985cd6..a30a6e5f781688ae6c54b26e6f44c2a76025c230 100644 (file)
@@ -41,7 +41,7 @@ tst_wcscpy (FILE * fp, int debug_flg)
          ws_ex = TST_EXPECT (wcscpy).ws;
 
          for (err = 0, i = 0;
-              (ws1[i] != 0L || ws_ex[i] != 0L) && i < WCSSIZE; i++)
+              i < WCSSIZE && (ws1[i] != 0L || ws_ex[i] != 0L); i++)
            {
              if (debug_flg)
                {