diff --git a/src/write_http.c b/src/write_http.c
index a7aafec888037589dd0218203e1677784553d50a..8c6a1b56ea3d0c57dfad0a6b7a7f5c4503325bcf 100644 (file)
--- a/src/write_http.c
+++ b/src/write_http.c
size_t offset = 0;
int status;
int i;
- gauge_t *rates = NULL;
+ gauge_t *rates = NULL;
assert (0 == strcmp (ds->type, vl->type));
{
if (cb->store_rates != 0)
{
- if (rates == NULL)
- rates = uc_get_rate (ds, vl);
- if (rates == NULL)
- {
- WARNING ("write_http plugin: "
- "uc_get_rate failed.");
- return (-1);
- }
+ if (rates == NULL)
+ rates = uc_get_rate (ds, vl);
+ if (rates == NULL)
+ {
+ WARNING ("write_http plugin: "
+ "uc_get_rate failed.");
+ return (-1);
+ }
BUFFER_ADD (":%lf", rates[i]);
}
else