aboutsummaryrefslogtreecommitdiff
path: root/localedata/tests-mbwc
diff options
context:
space:
mode:
authorMarek Polacek <polacek@redhat.com>2015-01-21 12:30:42 +0100
committerMarek Polacek <polacek@redhat.com>2015-01-21 12:30:42 +0100
commit86bba162b5732a33387ac6706bb2f25f8c966325 (patch)
treec710fabd5d574a191c2e03fb844e3dfbc6ff8e0c /localedata/tests-mbwc
parentccdb048df457d581f6ac7ede8b0c7a593a891dfa (diff)
downloadglibc-86bba162b5732a33387ac6706bb2f25f8c966325.zip
glibc-86bba162b5732a33387ac6706bb2f25f8c966325.tar.gz
glibc-86bba162b5732a33387ac6706bb2f25f8c966325.tar.bz2
Fix tst_wcscpy.c test.
Diffstat (limited to 'localedata/tests-mbwc')
-rw-r--r--localedata/tests-mbwc/tst_wcscpy.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/localedata/tests-mbwc/tst_wcscpy.c b/localedata/tests-mbwc/tst_wcscpy.c
index d5705a5..a30a6e5 100644
--- a/localedata/tests-mbwc/tst_wcscpy.c
+++ b/localedata/tests-mbwc/tst_wcscpy.c
@@ -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)
{