gbranden pushed a commit to branch master
in repository groff.

commit 62ab93d26e2118e7c28e07526a033316e7b5cf18
Author: G. Branden Robinson <[email protected]>
AuthorDate: Wed Nov 19 20:32:21 2025 -0600

    src/roff/troff/input.cpp: Add assertion.
    
    * src/roff/troff/input.cpp (get_line_arg): Do it.
---
 ChangeLog                | 4 ++++
 src/roff/troff/input.cpp | 1 +
 2 files changed, 5 insertions(+)

diff --git a/ChangeLog b/ChangeLog
index 543f64699..2d60df129 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2025-11-19  G. Branden Robinson <[email protected]>
+
+       * src/roff/troff/input.cpp (get_line_arg): Add assertion.
+
 2025-11-19  G. Branden Robinson <[email protected]>
 
        * src/roff/troff/token.h (token::nspaces): Fix code style nit.
diff --git a/src/roff/troff/input.cpp b/src/roff/troff/input.cpp
index b6fbb1ee4..73aacc87f 100644
--- a/src/roff/troff/input.cpp
+++ b/src/roff/troff/input.cpp
@@ -5891,6 +5891,7 @@ static bool read_delimited_number(units *n, unsigned char 
si)
 // \l, \L
 static bool get_line_arg(units *n, unsigned char si, charinfo **cip)
 {
+  assert(cip != 0 /* nullptr */);
   token start_token;
   start_token.next();
   if (!want_att_compat

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

Reply via email to