projects
/
collectd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
python plugin: Check return value of cpy_unicode_or_bytes_to_string().
[collectd.git]
/
src
/
common.c
diff --git
a/src/common.c
b/src/common.c
index
64bc42d
..
4da8fee
100644
(file)
--- a/
src/common.c
+++ b/
src/common.c
@@
-1104,6
+1104,9
@@
int parse_values (char *buffer, value_list_t *vl, const data_set_t *ds)
char *ptr;
char *saveptr;
+ if ((buffer == NULL) || (vl == NULL) || (ds == NULL))
+ return EINVAL;
+
i = -1;
dummy = buffer;
saveptr = NULL;