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/