This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
[PATCH] Fix typo in iso646 gconv module
- From: Andreas Schwab <schwab at linux-m68k dot org>
- To: libc-alpha at sourceware dot org
- Date: Sat, 19 Sep 2009 18:34:13 +0200
- Subject: [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."