mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-07-15 05:01:13 +08:00
Use obstack_blank_fast to shrink obstacks
obstack_blank isn't the correct macro to call for shrinking obstacks since it does size checking. * charset.c (convert_between_encodings): Shrink obstack using obstack_blank_fast. * minsyms.c (install_minimal_symbols): Likewise.
This commit is contained in:
@ -506,7 +506,7 @@ convert_between_encodings (const char *from, const char *to,
|
||||
|
||||
/* Now make sure that the object on the obstack only includes
|
||||
bytes we have converted. */
|
||||
obstack_blank (output, - (int) outleft);
|
||||
obstack_blank_fast (output, -outleft);
|
||||
|
||||
if (r == (size_t) -1)
|
||||
{
|
||||
|
Reference in New Issue
Block a user