aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKen Raeburn <raeburn@cygnus>1995-10-23 20:39:44 +0000
committerKen Raeburn <raeburn@cygnus>1995-10-23 20:39:44 +0000
commit2000c64319f4e11df8e31306d40aa18c099614d3 (patch)
tree7298a5666f800c23efa9175b9ee63586a08b2df2
parent0e3a4b1e8e1a70001f793e8070da38c791e58851 (diff)
downloadfsf-binutils-gdb-2000c64319f4e11df8e31306d40aa18c099614d3.zip
fsf-binutils-gdb-2000c64319f4e11df8e31306d40aa18c099614d3.tar.gz
fsf-binutils-gdb-2000c64319f4e11df8e31306d40aa18c099614d3.tar.bz2
If no filename is available (because we haven't opened the input file yet),
don't try to print one.
-rw-r--r--gas/input-scrub.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/gas/input-scrub.c b/gas/input-scrub.c
index b495ae0..662651f 100644
--- a/gas/input-scrub.c
+++ b/gas/input-scrub.c
@@ -377,7 +377,7 @@ bump_line_counters ()
* If the line_number is -1, we don't change the current logical line
* number. If it is -2, we decrement the logical line number (this is
* to support the .appfile pseudo-op inserted into the stream by
- * do_scrub_next_char).
+ * do_scrub_chars).
* If the fname is NULL, we don't change the current logical file name.
*/
void
@@ -423,7 +423,7 @@ as_where (namep, linep)
}
else
{
- *namep = (char *) "*unknown*";
+ *namep = 0;
if (linep != NULL)
*linep = 0;
}
@@ -453,7 +453,6 @@ as_howmuch (stream)
for (; p <= input_line_pointer; p++)
{
/* Assume ASCII. EBCDIC & other micro-computer char sets ignored. */
- /* c = *p & 0xFF; JF unused */
as_1_char ((unsigned char) *p, stream);
}
}