gbranden pushed a commit to branch master
in repository groff.

commit bfae3e3e1e68cf61a8f25c145913cd2109cb7c6c
Author: G. Branden Robinson <[email protected]>
AuthorDate: Sun Nov 8 14:55:24 2026 -0600

    src/roff/troff/input.cpp: Trivially refactor.
    
    * src/roff/troff/input.cpp (file_iterator::file_iterator): Drop
      tautologically false conditional.  Since commit 83e83786d9, 17
      October, we have already returned from the constructor under the
      circumstance it tests.
---
 ChangeLog                | 27 +++++++++++++++++++++++++++
 src/roff/troff/input.cpp |  2 +-
 2 files changed, 28 insertions(+), 1 deletion(-)

diff --git a/ChangeLog b/ChangeLog
new file mode 100644
index 000000000..c6ceabc42
--- /dev/null
+++ b/ChangeLog
@@ -0,0 +1,27 @@
+2026-11-08  G. Branden Robinson <[email protected]>
+
+       * src/roff/troff/input.cpp (file_iterator::file_iterator): Drop
+       tautologically false conditional.  Since commit 83e83786d9, 17
+       October, we have already returned from the constructor under the
+       circumstance it tests.
+
+
+
+________________________________________________________________________
+
+##### License
+
+Copyright 2026 G. Branden Robinson
+
+Copying and distribution of this file, with or without modification,
+are permitted in any medium without royalty provided the copyright
+notice and this notice are preserved.
+
+
+##### Editor settings
+Local Variables:
+fill-column: 72
+mode: change-log
+version-control: never
+End:
+vim:set autoindent textwidth=72:
diff --git a/src/roff/troff/input.cpp b/src/roff/troff/input.cpp
index d399867f4..927168b89 100644
--- a/src/roff/troff/input.cpp
+++ b/src/roff/troff/input.cpp
@@ -474,7 +474,7 @@ file_iterator::file_iterator(FILE *f, const char *fn, bool 
popened)
   if ((0 /* nullptr */ == f) || (0 /* nullptr */ == fn)) // NDEBUG
     return;
   filename = strdup(const_cast<char *>(fn));
-  if ((font::use_charnames_in_special) && (fn != 0 /* nullptr */)) {
+  if (font::use_charnames_in_special) {
     if (!the_output)
       init_output();
     the_output->put_filename(fn, popened);

_______________________________________________
groff-commit mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/groff-commit

Reply via email to