projects
/
external
/
binutils.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ff9e0f5
)
* charset.c (find_charset_names): Check 'in' against NULL.
author
Tom Tromey
<tromey@redhat.com>
Tue, 7 Feb 2012 15:42:39 +0000
(15:42 +0000)
committer
Tom Tromey
<tromey@redhat.com>
Tue, 7 Feb 2012 15:42:39 +0000
(15:42 +0000)
gdb/ChangeLog
patch
|
blob
|
history
gdb/charset.c
patch
|
blob
|
history
diff --git
a/gdb/ChangeLog
b/gdb/ChangeLog
index
5adc587
..
f85f139
100644
(file)
--- a/
gdb/ChangeLog
+++ b/
gdb/ChangeLog
@@
-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,
diff --git
a/gdb/charset.c
b/gdb/charset.c
index
62977d1
..
16dab6b
100644
(file)
--- a/
gdb/charset.c
+++ b/
gdb/charset.c
@@
-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];