mirror of
https://github.com/netwide-assembler/nasm.git
synced 2025-02-23 17:29:23 +08:00
assemble: don't pass a NULL filename to dfmt->linenum
Don't pass a NULL filename to dfmt->linenum even if -Lb is in use; it confuses the heck out of some debug backends. Signed-off-by: H. Peter Anvin (Intel) <hpa@zytor.com>
This commit is contained in:
parent
7501601dbd
commit
f399172a83
@ -424,7 +424,7 @@ static void out(struct out_data *data)
|
||||
* changed, and the amount by which lineno changed,
|
||||
* if it did. thus, these variables must be static
|
||||
*/
|
||||
if (src_get(&lineno, &lnfname))
|
||||
if (src_get(&lineno, &lnfname) && lnfname)
|
||||
dfmt->linenum(lnfname, lineno, data->segment);
|
||||
|
||||
if (asize > amax) {
|
||||
|
Loading…
Reference in New Issue
Block a user