diff options
| author | Jordan K. Hubbard <jkh@FreeBSD.org> | 2003-12-17 02:46:48 +0000 | 
|---|---|---|
| committer | Jordan K. Hubbard <jkh@FreeBSD.org> | 2003-12-17 02:46:48 +0000 | 
| commit | dee551158f72e1e1768ca3e076e0b625903d41ba (patch) | |
| tree | 65cabad01932f2d9252277f1b846fb0e6baa48e7 /lib/libc/string/index.c | |
| parent | af7552658b7b6301c4b6cd182a2c0141c429df48 (diff) | |
Notes
Diffstat (limited to 'lib/libc/string/index.c')
| -rw-r--r-- | lib/libc/string/index.c | 3 | 
1 files changed, 2 insertions, 1 deletions
| diff --git a/lib/libc/string/index.c b/lib/libc/string/index.c index c81f95b0989b..fe523be40f86 100644 --- a/lib/libc/string/index.c +++ b/lib/libc/string/index.c @@ -52,8 +52,9 @@ index  #endif  (const char *p, int ch)  { +	char c = ch;  	for (;; ++p) { -		if (*p == ch) +		if (*p == c)  			return ((char *)p);  		if (*p == '\0')  			return (NULL); | 
