gbranden pushed a commit to branch master
in repository groff.
commit 46443135827e6612368174d0a09e0a6da023dada
Author: G. Branden Robinson <[email protected]>
AuthorDate: Tue Dec 30 02:10:27 2025 -0600
src/libs/libgroff/errarg.cpp: Annotate null ptr.
Annotate null pointer with `nullptr` comment to ease any future
transition to C++11, which defines it as a keyword.
---
src/libs/libgroff/errarg.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/libs/libgroff/errarg.cpp b/src/libs/libgroff/errarg.cpp
index 991d38e88..5870937a0 100644
--- a/src/libs/libgroff/errarg.cpp
+++ b/src/libs/libgroff/errarg.cpp
@@ -99,7 +99,7 @@ void errprint(const char *format,
const errarg &arg2,
const errarg &arg3)
{
- assert(format != 0);
+ assert(format != 0 /* nullptr */);
char c;
while ((c = *format++) != '\0') {
if (c == '%') {
_______________________________________________
groff-commit mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/groff-commit