diff options
author | Tom Tromey <tromey@redhat.com> | 2012-02-07 15:42:39 +0000 |
---|---|---|
committer | Tom Tromey <tromey@redhat.com> | 2012-02-07 15:42:39 +0000 |
commit | 1d6b2d2b4a864c478fb6a46e15a29859641fe788 (patch) | |
tree | e90573ccae421a689258f6aabad59758f56d8de4 /gdb/charset.c | |
parent | ff9e0f5bc852249504bcec3d3d51ecd4a637a609 (diff) | |
download | gdb-1d6b2d2b4a864c478fb6a46e15a29859641fe788.zip gdb-1d6b2d2b4a864c478fb6a46e15a29859641fe788.tar.gz gdb-1d6b2d2b4a864c478fb6a46e15a29859641fe788.tar.bz2 |
* charset.c (find_charset_names): Check 'in' against NULL.
Diffstat (limited to 'gdb/charset.c')
-rw-r--r-- | gdb/charset.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/charset.c b/gdb/charset.c index 62977d1..16dab6b 100644 --- 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]; |