From 5df6d83034a69e6a97cbc135c7a60301d1d47d92 Mon Sep 17 00:00:00 2001 From: "~/.gitconfig" Date: Sun, 17 Aug 2014 17:16:34 +0300 Subject: [PATCH] check the status of cf_util_get_string --- src/write_riemann.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/write_riemann.c b/src/write_riemann.c index 7f0211f6..477109da 100644 --- a/src/write_riemann.c +++ b/src/write_riemann.c @@ -766,6 +766,7 @@ static int riemann_config_node(oconfig_item_t *ci) /* {{{ */ break; } else if (strcasecmp ("EventServicePrefix", child->key) == 0) { status = cf_util_get_string (child, &host->prefix); + if (status != 0) break; } else if (strcasecmp ("CheckThresholds", child->key) == 0) { status = cf_util_get_boolean(child, &host->check_thresholds); -- 2.11.0