Fix pointer/char comparison

[stinit.c:151]: (warning) Char literal compared with pointer
'cp2'. Did you intend to dereference it?
This commit is contained in:
David Binderman
2015-02-02 11:11:28 +01:00
committed by Iustin Pop
parent 80e1c3d17c
commit 1f4613eb2b

View File

@@ -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;