From: ~/.gitconfig Date: Sun, 17 Aug 2014 14:16:34 +0000 (+0300) Subject: check the status of cf_util_get_string X-Git-Tag: collectd-5.5.0~219^2~3 X-Git-Url: https://git.octo.it/?a=commitdiff_plain;h=5df6d83034a69e6a97cbc135c7a60301d1d47d92;p=collectd.git check the status of cf_util_get_string --- 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);