From a5ea9e04912fd289e9c2fce29f6b4935167223a4 Mon Sep 17 00:00:00 2001
From: Marko Lindqvist <cazfi74@gmail.com>
Date: Sat, 20 Jun 2026 23:30:09 +0300
Subject: [PATCH 39/39] comments.c: Replace NULL with nullptr

See RM #2059

Signed-off-by: Marko Lindqvist <cazfi74@gmail.com>
---
 tools/ruleutil/comments.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/tools/ruleutil/comments.c b/tools/ruleutil/comments.c
index a0638c3f3d..defda8fcce 100644
--- a/tools/ruleutil/comments.c
+++ b/tools/ruleutil/comments.c
@@ -114,13 +114,13 @@ bool comments_load(void)
 
   fullpath = fileinfoname(get_data_dirs(), "ruledit/" COMMENTS_FILE_NAME);
 
-  if (fullpath == NULL) {
+  if (fullpath == nullptr) {
     log_error(_("Can't find the comments file"));
     return FALSE;
   }
 
   comment_file = secfile_load(fullpath, FALSE);
-  if (comment_file == NULL) {
+  if (comment_file == nullptr) {
     log_error(_("Can't parse the comments file"));
     return FALSE;
   }
@@ -286,7 +286,7 @@ void comments_free(void)
 static void comment_write(struct section_file *sfile, const char *comment,
                           const char *name)
 {
-  if (comment == NULL) {
+  if (comment == nullptr) {
     log_error(_("Comment for %s missing."), name);
     return;
   }
@@ -300,7 +300,7 @@ static void comment_write(struct section_file *sfile, const char *comment,
 static void comment_entry_write(struct section_file *sfile,
                                 const char *comment, const char *section)
 {
-  if (comment == NULL) {
+  if (comment == nullptr) {
     log_error(_("Comment to section %s missing."), section);
     return;
   }
-- 
2.53.0

