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
/
meta_data.c
diff --git
a/src/meta_data.c
b/src/meta_data.c
index
b6483e8
..
0fc58ff
100644
(file)
--- a/
src/meta_data.c
+++ b/
src/meta_data.c
@@
-109,6
+109,8
@@
static meta_entry_t *md_entry_clone (const meta_entry_t *orig) /* {{{ */
return (NULL);
copy = md_entry_alloc (orig->key);
+ if (copy == NULL)
+ return (NULL);
copy->type = orig->type;
if (copy->type == MD_TYPE_STRING)
copy->value.mv_string = strdup (orig->value.mv_string);