[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug #64628] [pic] generated `lf` requests no longer set file name
From: |
Bjarni Ingi Gislason |
Subject: |
[bug #64628] [pic] generated `lf` requests no longer set file name |
Date: |
Sun, 17 Sep 2023 10:22:26 -0400 (EDT) |
Follow-up Comment #3, bug #64628 (project groff):
Or better, change
strcmp(s, last_filename) == 0
to
strcmp(s, last_filename) != 0
void troff_output::set_location(const char *s, int n)
{
assert(s != 0 /* nullptr */);
if ((s != 0 /* nullptr */) && (last_filename != 0 /* nullptr */)
&& strcmp(s, last_filename) == 0) {
printf(".lf %d %s\n", n, s);
char *lfn = strdup(s);
if (0 /* nullptr */ == lfn)
fatal("memory allocation failure while copying file name");
last_filename = lfn;
}
else
printf(".lf %d\n", n);
}
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?64628>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/