about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog4
-rw-r--r--iconvdata/utf-16.c2
2 files changed, 5 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index fe9e1622e5..806bafba11 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2000-03-21  Ulrich Drepper  <drepper@redhat.com>
+
+	* iconvdata/utf-16.c (gconv_init): Fix typo.
+
 2000-03-20  Ulrich Drepper  <drepper@redhat.com>
 
 	* iconvdata/gconv-modules: Fix typo.
diff --git a/iconvdata/utf-16.c b/iconvdata/utf-16.c
index 8348ce292d..55540c9849 100644
--- a/iconvdata/utf-16.c
+++ b/iconvdata/utf-16.c
@@ -129,7 +129,7 @@ gconv_init (struct __gconv_step *step)
 	  new_data->var = var;
 	  step->__data = new_data;
 
-	  if (var == from_utf16)
+	  if (dir == from_utf16)
 	    {
 	      step->__min_needed_from = MIN_NEEDED_FROM;
 	      step->__max_needed_from = MIN_NEEDED_FROM;