summaryrefslogtreecommitdiff
path: root/as/genlist.c
diff options
context:
space:
mode:
Diffstat (limited to 'as/genlist.c')
-rw-r--r--as/genlist.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/as/genlist.c b/as/genlist.c
index 399a71e..b0db41c 100644
--- a/as/genlist.c
+++ b/as/genlist.c
@@ -169,7 +169,7 @@ error_pt errnum;
PUBLIC void listline()
{
- if (!listpre)
+ if (!listpre && lineptr != 0)
{
if (errcount || (list.current && (!macflag || mcount != 0)) ||
(macflag && maclist.current) || list_force )