#985161 term.c: use "NULL" for comparisons with pointers, not "NUL"

Package:
src:nn
Source:
nn
Submitter:
Bjarni Ingi Gislason
Date:
2021-03-13 20:21:03 UTC
Severity:
normal
Tags:
#985161#5
Date:
2021-03-13 20:17:57 UTC
From:
To:
Dear Maintainer,

term.c:1743:18: warning: comparison between pointer and zero character constant [-Wpointer-compare]
 1743 |  if (mk->cur_key == NUL)

Signed-off-by: Bjarni Ingi Gislason <bjarniig@rhi.hi.is>
---
 term.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/term.c b/term.c
index 088c9f5..b756644 100644
--- a/term.c
+++ b/term.c
@@ -1740,10 +1740,10 @@ multi:

     multi_match = NULL;
     for (i = multi_keys, mk = multi_key_list; --i >= 0; mk++) {
-	if (mk->cur_key == NUL)
+	if (mk->cur_key == NULL)
 	    continue;
 	if (*(mk->cur_key)++ != c) {
-	    mk->cur_key = NUL;
+	    mk->cur_key = NULL;
 	    continue;
 	}
 	if (*(mk->cur_key) == NUL) {