diff options
author | Nick Clifton <nickc@redhat.com> | 2008-06-04 16:10:21 +0000 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2008-06-04 16:10:21 +0000 |
commit | b38fa95e05cf2be79462de953ad8e49b2317023d (patch) | |
tree | a21ce57a1bc8f8b3ebf7c1b50d28ed0ffc38f7fd /gas/app.c | |
parent | 0805c9b57c1613bf7070c4b85392f39fa85bdc2a (diff) | |
download | binutils-redhat-b38fa95e05cf2be79462de953ad8e49b2317023d.tar.gz |
* app.c (do_scrub_chars): Do not UNGET an EOF value.
Diffstat (limited to 'gas/app.c')
-rw-r--r-- | gas/app.c | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -832,7 +832,8 @@ do_scrub_chars (int (*get) (char *, int), char *tostart, int tolen) /* Only keep this white if there's no white *after* the colon. */ ch2 = GET (); - UNGET (ch2); + if (ch2 != EOF) + UNGET (ch2); if (!IS_WHITESPACE (ch2)) { state = 9; @@ -1116,7 +1117,8 @@ do_scrub_chars (int (*get) (char *, int), char *tostart, int tolen) #ifdef DOUBLEBAR_PARALLEL case LEX_IS_DOUBLEBAR_1ST: ch2 = GET (); - UNGET (ch2); + if (ch2 != EOF) + UNGET (ch2); if (ch2 != '|') goto de_fault; |