Code

check the status of cf_util_get_string
author~/.gitconfig <moshe@forter.com>
Sun, 17 Aug 2014 14:16:34 +0000 (17:16 +0300)
committer~/.gitconfig <moshe@forter.com>
Sun, 17 Aug 2014 14:16:34 +0000 (17:16 +0300)
src/write_riemann.c

index 7f0211f66647fc995a509d83825f3876d3798497..477109daa2249eacd494b5459c1898be55df2293 100644 (file)
@@ -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);