This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH] Fix typo in iso646 gconv module


Found by gcc's -Wenum-compare.

Andreas.

2009-09-19  Andreas Schwab  <schwab@linux-m68k.org>

	* iconvdata/iso646.c (gconv_init): Correctly initialize the
	character size elements in step data.

diff --git a/iconvdata/iso646.c b/iconvdata/iso646.c
index f388ae7..0989532 100644
--- a/iconvdata/iso646.c
+++ b/iconvdata/iso646.c
@@ -156,7 +156,7 @@ gconv_init (struct __gconv_step *step)
 	  new_data->var = var;
 	  step->__data = new_data;
 
-	  if (var == from_iso646)
+	  if (dir == from_iso646)
 	    {
 	      step->__min_needed_from = MIN_NEEDED_FROM;
 	      step->__max_needed_from = MIN_NEEDED_FROM;

-- 
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]