From 3228653a01daec8e76bcfbd75b4e77e134aceae4 Mon Sep 17 00:00:00 2001 From: Florian Forster Date: Sat, 13 Jul 2013 07:38:05 +0200 Subject: [PATCH] write_graphite plugin: Actually check the return value of wg_send_message(). Assignment to "status" was missing. --- src/write_graphite.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/write_graphite.c b/src/write_graphite.c index 87befb63..11e09a2a 100644 --- 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 */ -- 2.30.2