From 1f4613eb2b7035b7bafd4f79d555af40604dfc03 Mon Sep 17 00:00:00 2001 From: David Binderman Date: Mon, 2 Feb 2015 11:11:28 +0100 Subject: [PATCH] Fix pointer/char comparison [stinit.c:151]: (warning) Char literal compared with pointer 'cp2'. Did you intend to dereference it? --- stinit.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stinit.c b/stinit.c index 5a50341..8c65476 100644 --- a/stinit.c +++ b/stinit.c @@ -148,7 +148,7 @@ find_string(char *s, char *target, char *buf, int buflen) else for (cp2=cp+1; isalnum(*cp2) || *cp2 == '-'; cp2++) ; - if (cp2 == '\0') + if (*cp2 == '\0') return NULL; have_arg = TRUE; argp = cp;