Commit 5892c641 by Doug Gregor Committed by Doug Gregor

Avoid subscripting empty string.

From-SVN: r68739
parent 7685a26d
2003-06-30 Doug Gregor <dgregor@apple.com>
* include/bits/locale_facets.tcc (money_get::do_get): Avoid
subscripting empty string.
2003-06-30 Phil Edwards <pme@gcc.gnu.org>
* testsuite/Makefile.am (check-am): Do not override.
......
......@@ -1272,7 +1272,7 @@ namespace std
}
// Strip leading zeros.
while (__tmp_units[0] == __ctype.widen('0'))
while (!__tmp_units.empty() && __tmp_units[0] == __ctype.widen('0'))
__tmp_units.erase(__tmp_units.begin());
if (__sign.size() && __sign == __neg_sign)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment