projects
/
collectd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
curl plugin: correct error message
[collectd.git]
/
src
/
onewire.c
diff --git
a/src/onewire.c
b/src/onewire.c
index
3c441ec
..
42bd1eb
100644
(file)
--- a/
src/onewire.c
+++ b/
src/onewire.c
@@
-176,11
+176,11
@@
static int direct_list_insert(const char * config)
{
regmatch_t pmatch[3];
size_t nmatch = 3;
{
regmatch_t pmatch[3];
size_t nmatch = 3;
- direct_access_element_t *element
= NULL
;
+ direct_access_element_t *element;
DEBUG ("onewire plugin: direct_list_insert <%s>", config);
DEBUG ("onewire plugin: direct_list_insert <%s>", config);
- element =
(direct_access_element_t *) malloc (sizeof
(*element));
+ element =
malloc (sizeof
(*element));
if (element == NULL)
{
ERROR ("onewire plugin: direct_list_insert - cannot allocate element");
if (element == NULL)
{
ERROR ("onewire plugin: direct_list_insert - cannot allocate element");