projects
/
collectd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bfd3f06
)
write_graphite plugin: Actually check the return value of wg_send_message().
author
Florian Forster
<octo@collectd.org>
Sat, 13 Jul 2013 05:38:05 +0000
(07:38 +0200)
committer
Florian Forster
<octo@collectd.org>
Sat, 13 Jul 2013 05:38:37 +0000
(07:38 +0200)
Assignment to "status" was missing.
src/write_graphite.c
patch
|
blob
|
history
diff --git
a/src/write_graphite.c
b/src/write_graphite.c
index
87befb6
..
11e09a2
100644
(file)
--- a/
src/write_graphite.c
+++ b/
src/write_graphite.c
@@
-364,12
+364,9
@@
static int wg_write_messages (const data_set_t *ds, const value_list_t *vl,
return (status);
/* Send the message to graphite */
- wg_send_message (buffer, cb);
- if (status != 0)
- {
- /* An error message has already been printed. */
+ status = wg_send_message (buffer, cb);
+ if (status != 0) /* error message has been printed already. */
return (status);
- }
return (0);
} /* int wg_write_messages */