Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion asm/nasm.c
Original file line number Diff line number Diff line change
Expand Up @@ -682,7 +682,7 @@ int main(int argc, char **argv)

/* Skip blank lines if we will need a %line anyway */
if (linnum == -1 && !line[0])
continue;
goto done;

if (linnum != where.lineno) {
fprintf(out, "%%line %"PRId32"%+"PRId32" %s\n",
Expand All @@ -692,6 +692,9 @@ int main(int argc, char **argv)

fputs(line, out);
fputc('\n', out);

done:
nasm_free(line);
}

nasm_free(quoted_file_name);
Expand Down