projects
/
collectd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b260f72
)
mqtt plugin: Correctly check the return value of format_topic().
author
Florian Forster
<octo@collectd.org>
Fri, 21 Nov 2014 10:23:01 +0000
(11:23 +0100)
committer
Florian Forster
<octo@collectd.org>
Mon, 6 Jul 2015 12:07:10 +0000
(14:07 +0200)
src/mqtt.c
patch
|
blob
|
history
diff --git
a/src/mqtt.c
b/src/mqtt.c
index
c525437
..
163bd4a
100644
(file)
--- a/
src/mqtt.c
+++ b/
src/mqtt.c
@@
-191,6
+191,7
@@
static int mqtt_write (const data_set_t *ds, const value_list_t *vl,
conf = user_data->data;
status = format_topic (topic, sizeof (topic), ds, vl, conf);
+ if (status != 0)
{
ERROR ("mqtt plugin: format_topic failed with status %d.", status);
return (status);