projects
/
kopensolaris-gnu
/
glibc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5628f81
)
(nscd_parse_file): Use strchrnul.
author
drepper
<drepper>
Wed, 28 Apr 1999 22:09:30 +0000
(22:09 +0000)
committer
drepper
<drepper>
Wed, 28 Apr 1999 22:09:30 +0000
(22:09 +0000)
nscd/nscd_conf.c
patch
|
blob
|
history
diff --git
a/nscd/nscd_conf.c
b/nscd/nscd_conf.c
index
6ac1677
..
d31e2bd
100644
(file)
--- a/
nscd/nscd_conf.c
+++ b/
nscd/nscd_conf.c
@@
-63,9
+63,7
@@
nscd_parse_file (const char *fname, struct database dbs[lastdb])
/* Because the file format does not know any form of quoting we
can search forward for the next '#' character and if found
make it terminating the line. */
- cp = strchr (line, '#');
- if (cp != NULL)
- *cp = '\0';
+ *strchrnul (line, '#') = '\0';
/* If the line is blank it is ignored. */
if (line[0] == '\0')