From 28781bb30db71760da3c88a5c34903ee1387d20b Mon Sep 17 00:00:00 2001
From: Xu Zheng <xuzheng_yewu@cmss.chinamobile.com>
Date: Thu, 24 Nov 2022 18:12:49 +0800
Subject: [PATCH 21/23] util: Drop pointless NUL_TERMINATE macro

It's only used once and open coding it is at least as clear as using the
macro.

Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
Reviewed-by: Peter Krempa <pkrempa@redhat.com>
Signed-off-by: Xu Zheng <xuzheng_yewu@cmss.chinamobile.com>
---
 src/internal.h | 1 -
 1 file changed, 1 deletion(-)

diff --git a/src/internal.h b/src/internal.h
index a1068eb63b..302fddba34 100644
--- a/src/internal.h
+++ b/src/internal.h
@@ -87,7 +87,6 @@
 #define STREQ_NULLABLE(a, b) (g_strcmp0(a, b) == 0)
 #define STRNEQ_NULLABLE(a, b) (g_strcmp0(a, b) != 0)
 
-#define NUL_TERMINATE(buf) do { (buf)[sizeof(buf)-1] = '\0'; } while (0)
 
 #ifdef WIN32
 # ifndef O_CLOEXEC
-- 
2.27.0

