about summary refs log tree commit diff
path: root/iconv/gconv_trans.c
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2000-06-21 23:21:55 +0000
committerUlrich Drepper <drepper@redhat.com>2000-06-21 23:21:55 +0000
commitd5055a2070c1289ed919fab4fb2f4e7670faaf4a (patch)
treec922b7ae97d0c5083a284550127193a009df6da3 /iconv/gconv_trans.c
parent2b6fb3dfb5c71b8f36e0ff8c7a8467fbdfa4aced (diff)
downloadglibc-d5055a2070c1289ed919fab4fb2f4e7670faaf4a.tar.gz
glibc-d5055a2070c1289ed919fab4fb2f4e7670faaf4a.tar.xz
glibc-d5055a2070c1289ed919fab4fb2f4e7670faaf4a.zip
Move initialization of winbuf and winbufend ahead.
Diffstat (limited to 'iconv/gconv_trans.c')
-rw-r--r--iconv/gconv_trans.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/iconv/gconv_trans.c b/iconv/gconv_trans.c
index 4d6e7766fd..f0656445be 100644
--- a/iconv/gconv_trans.c
+++ b/iconv/gconv_trans.c
@@ -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