From 7a66c29615152b9e6353020338b286a780e2ac13 Mon Sep 17 00:00:00 2001 From: Florian Forster Date: Fri, 21 Nov 2014 11:23:01 +0100 Subject: [PATCH] mqtt plugin: Correctly check the return value of format_topic(). --- src/mqtt.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/mqtt.c b/src/mqtt.c index c5254375..163bd4ad 100644 --- 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); -- 2.30.2