diff options
| author | Robert Drehmel <robert@FreeBSD.org> | 2004-03-29 21:15:41 +0000 |
|---|---|---|
| committer | Robert Drehmel <robert@FreeBSD.org> | 2004-03-29 21:15:41 +0000 |
| commit | 9fbb80baff3a8102d579e4284ae0360cdb824410 (patch) | |
| tree | d18bd47260e1181fb42a0acfea5ee72917e45a50 /sys/libkern | |
| parent | 3666cedd6bc07b0d4efdfa8e2985194f83b52e03 (diff) | |
Notes
Diffstat (limited to 'sys/libkern')
| -rw-r--r-- | sys/libkern/index.c | 2 | ||||
| -rw-r--r-- | sys/libkern/rindex.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/sys/libkern/index.c b/sys/libkern/index.c index 1e2b11bba5db..a6427d841ecf 100644 --- a/sys/libkern/index.c +++ b/sys/libkern/index.c @@ -51,7 +51,7 @@ index(p, ch) for (;; ++u.p) { if (*u.p == ch) return(u.p); - if (!*u.p) + if (*u.p == '\0') return(NULL); } /* NOTREACHED */ diff --git a/sys/libkern/rindex.c b/sys/libkern/rindex.c index 8db24db8a217..3de21301a0e0 100644 --- a/sys/libkern/rindex.c +++ b/sys/libkern/rindex.c @@ -52,7 +52,7 @@ rindex(p, ch) for (save = NULL;; ++u.p) { if (*u.p == ch) save = u.p; - if (!*u.p) + if (*u.p == '\0') return(save); } /* NOTREACHED */ |
