From aab438f8b18fd1dded02ee70fe3ed4afdeba38d5 Mon Sep 17 00:00:00 2001 From: Michael Adam Date: Wed, 9 Apr 2014 01:08:54 +0200 Subject: [PATCH] s3-lib/util: make != NULL check explicit in set_namearray() Signed-off-by: Michael Adam --- source3/lib/util.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source3/lib/util.c b/source3/lib/util.c index 2794882..945fc97 100644 --- a/source3/lib/util.c +++ b/source3/lib/util.c @@ -1107,7 +1107,7 @@ void set_namearray(name_compare_entry **ppname_array, const char *namelist_in) /* find the next '/' or consume remaining */ name_end = strchr_m(nameptr, '/'); - if (name_end) { + if (name_end != NULL) { *name_end = '\0'; } -- 1.8.3.2