projects
/
collectd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
docs/CONTRIBUTING.md: s/test/text/
[collectd.git]
/
src
/
utils_ignorelist.c
diff --git
a/src/utils_ignorelist.c
b/src/utils_ignorelist.c
index
29b2af2
..
b385102
100644
(file)
--- a/
src/utils_ignorelist.c
+++ b/
src/utils_ignorelist.c
@@
-267,7
+267,7
@@
int ignorelist_add(ignorelist_t *il, const char *entry) {
return ENOMEM;
/* trim trailing slash */
return ENOMEM;
/* trim trailing slash */
- copy[strlen(copy) - 1] =
0
;
+ copy[strlen(copy) - 1] =
'\0'
;
status = ignorelist_append_regex(il, copy);
sfree(copy);
status = ignorelist_append_regex(il, copy);
sfree(copy);