mirror of
https://sourceware.org/git/glibc.git
synced 2024-12-23 03:10:05 +00:00
Move initialization of winbuf and winbufend ahead.
This commit is contained in:
parent
2b6fb3dfb5
commit
d5055a2070
@ -51,6 +51,10 @@ __gconv_transliterate (struct __gconv_step *step,
|
||||
uint_fast32_t high;
|
||||
uint32_t *default_missing;
|
||||
|
||||
/* The input buffer. There are actually 4-byte values. */
|
||||
winbuf = (uint32_t *) *inbufp;
|
||||
winbufend = (uint32_t *) inbufend;
|
||||
|
||||
/* If there is no transliteration information in the locale don't do
|
||||
anything and return the error. */
|
||||
size = _NL_CURRENT_WORD (LC_CTYPE, _NL_CTYPE_TRANSLIT_HASH_SIZE);
|
||||
@ -64,10 +68,6 @@ __gconv_transliterate (struct __gconv_step *step,
|
||||
to_idx = (uint32_t *) _NL_CURRENT (LC_CTYPE, _NL_CTYPE_TRANSLIT_TO_IDX);
|
||||
to_tbl = (uint32_t *) _NL_CURRENT (LC_CTYPE, _NL_CTYPE_TRANSLIT_TO_TBL);
|
||||
|
||||
/* The input buffer. There are actually 4-byte values. */
|
||||
winbuf = (uint32_t *) *inbufp;
|
||||
winbufend = (uint32_t *) inbufend;
|
||||
|
||||
/* Test whether there is enough input. */
|
||||
if (winbuf + 1 > winbufend)
|
||||
return (winbuf == winbufend
|
||||
|
Loading…
Reference in New Issue
Block a user