aboutsummaryrefslogtreecommitdiff
path: root/string/strxfrm.c
diff options
context:
space:
mode:
Diffstat (limited to 'string/strxfrm.c')
-rw-r--r--string/strxfrm.c24
1 files changed, 13 insertions, 11 deletions
diff --git a/string/strxfrm.c b/string/strxfrm.c
index 795e8e4..b3e99fb 100644
--- a/string/strxfrm.c
+++ b/string/strxfrm.c
@@ -250,17 +250,19 @@ STRXFRM (STRING_TYPE *dest, const STRING_TYPE *src, size_t n, __locale_t l)
/* We have to increment the index counters. */
if ((forward && ++idx >= run->data[pass].number)
|| (!forward && --idx < 0))
- if (forward)
- {
- run = run->next;
- idx = 0;
- }
- else
- {
- run = run->prev;
- if (run != NULL)
- idx = run->data[pass].number - 1;
- }
+ {
+ if (forward)
+ {
+ run = run->next;
+ idx = 0;
+ }
+ else
+ {
+ run = run->prev;
+ if (run != NULL)
+ idx = run->data[pass].number - 1;
+ }
+ }
}
/* Write marker for end of word. */