gbranden pushed a commit to branch master
in repository groff.

commit 49d2708f19e8219f9de4c7ec6a09f87acdff856b
Author: G. Branden Robinson <[email protected]>
AuthorDate: Mon May 19 14:56:37 2025 -0500

    [pre-grohtml]: Fix syntax error in disabled code.
    
    * src/preproc/html/pre-html.cpp (imageList::createImage) [DEBUGGING]:
      Fix syntax error in disabled code.
    
    Also annotate null pointers with `nullptr` comment to ease any future
    transition to C++11, which defines it as a keyword.
---
 ChangeLog                     | 5 +++++
 src/preproc/html/pre-html.cpp | 4 ++--
 2 files changed, 7 insertions(+), 2 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index 795d550a8..2ee753aae 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2025-05-19  G. Branden Robinson <[email protected]>
+
+       * src/preproc/html/pre-html.cpp (imageList::createImage)
+       [DEBUGGING]: Fix syntax error in disabled code.
+
 2025-05-18  G. Branden Robinson <[email protected]>
 
        [mdoc]: Refactor continuous rendering mode to use an "infinite
diff --git a/src/preproc/html/pre-html.cpp b/src/preproc/html/pre-html.cpp
index 9cb8dce05..b971502fc 100644
--- a/src/preproc/html/pre-html.cpp
+++ b/src/preproc/html/pre-html.cpp
@@ -1045,7 +1045,7 @@ void imageList::createImage(imageItem *i)
   }
   else {
     if (debugging) {
-      fprintf(stderr, "%s: debug: ignoring image as x1 coord is -1\n"
+      fprintf(stderr, "%s: debug: ignoring image as x1 coord is -1\n",
              program_name);
       fflush(stderr);
     }
@@ -1821,7 +1821,7 @@ int main(int argc, char **argv)
     sys_fatal("atexit");
   int operand_index = scanArguments(argc, argv);
   image_gen = strsave(get_image_generator());
-  if (0 == image_gen)
+  if (0 /* nullptr */ == image_gen)
     fatal("'image_generator' directive not found in file '%1'",
          devhtml_desc);
   postscriptRes = get_resolution();

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

Reply via email to