aboutsummaryrefslogtreecommitdiff
path: root/locale
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>1999-11-22 01:28:56 +0000
committerUlrich Drepper <drepper@redhat.com>1999-11-22 01:28:56 +0000
commit7f6532772c84ad2c93ce201501cae31b024037a2 (patch)
treed4a0dd4370c0433c5a6a6ff701cdb47572f62d1a /locale
parent87372aa9cf3b26291bfbd74e68e221da06ea953d (diff)
downloadglibc-7f6532772c84ad2c93ce201501cae31b024037a2.zip
glibc-7f6532772c84ad2c93ce201501cae31b024037a2.tar.gz
glibc-7f6532772c84ad2c93ce201501cae31b024037a2.tar.bz2
Update.
* sysdeps/i386/fpu/libm-test-ulps: Increase error value for latest gcc version.
Diffstat (limited to 'locale')
-rw-r--r--locale/programs/ld-ctype.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/locale/programs/ld-ctype.c b/locale/programs/ld-ctype.c
index d9a5607..29ef15d 100644
--- a/locale/programs/ld-ctype.c
+++ b/locale/programs/ld-ctype.c
@@ -1790,9 +1790,11 @@ ctype_read (struct linereader *ldfile, struct localedef_t *result,
}
}
else
- class_bit = _ISwbit (cnt);
+ {
+ class_bit = _ISwbit (cnt);
- free (now->val.str.startmb);
+ free (now->val.str.startmb);
+ }
}
else if (now->tok == tok_digit)
goto handle_tok_digit;
@@ -2070,7 +2072,9 @@ with character code range values one must use the absolute ellipsis `...'"));
if (strcmp (now->val.str.startmb, ctype->mapnames[cnt]) == 0)
break;
- if (cnt >= ctype->map_collection_nr)
+ if (cnt < ctype->map_collection_nr)
+ free (now->val.str.startmb);
+ else
/* OK, it's a new map. */
ctype_map_new (ldfile, ctype, now->val.str.startmb, charmap);