mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2025-02-11 13:02:10 +08:00
* charset.c (find_charset_names): Check 'in' against NULL.
This commit is contained in:
parent
ff9e0f5bc8
commit
1d6b2d2b4a
@ -1,3 +1,7 @@
|
||||
2012-02-07 Tom Tromey <tromey@redhat.com>
|
||||
|
||||
* charset.c (find_charset_names): Check 'in' against NULL.
|
||||
|
||||
2012-02-06 Doug Evans <dje@google.com>
|
||||
|
||||
* gdbtypes.h (struct main_type): Change type of name,tag_name,
|
||||
|
@ -839,7 +839,7 @@ find_charset_names (void)
|
||||
parse the glibc and libiconv formats; feel free to add others
|
||||
as needed. */
|
||||
|
||||
while (!feof (in))
|
||||
while (in != NULL && !feof (in))
|
||||
{
|
||||
/* The size of buf is chosen arbitrarily. */
|
||||
char buf[1024];
|
||||
|
Loading…
Reference in New Issue
Block a user