aboutsummaryrefslogtreecommitdiff
path: root/gas/app.c
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2008-06-04 16:10:21 +0000
committerNick Clifton <nickc@redhat.com>2008-06-04 16:10:21 +0000
commit83bd74026cbdb8bfbdd44f3d467a77e009f8df31 (patch)
tree2377a20187895cb96d3ca6448de17dc4346c03e5 /gas/app.c
parent0f0a5e5880648f0c1c5177d00acd6505733e7aec (diff)
downloadgdb-83bd74026cbdb8bfbdd44f3d467a77e009f8df31.zip
gdb-83bd74026cbdb8bfbdd44f3d467a77e009f8df31.tar.gz
gdb-83bd74026cbdb8bfbdd44f3d467a77e009f8df31.tar.bz2
* app.c (do_scrub_chars): Do not UNGET an EOF value.
Diffstat (limited to 'gas/app.c')
-rw-r--r--gas/app.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/gas/app.c b/gas/app.c
index d8d0cc5..4ba9edc 100644
--- a/gas/app.c
+++ b/gas/app.c
@@ -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;