X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Frrd_tool.c;h=68d546552d60c8f64896b550a4e83abe06238b93;hb=622adf9826b98d3982278c57ab9a0f8fc6041b03;hp=5eaf10588ae7ddcf1009f48ee23518aeb988ddc6;hpb=4a02d97ff36d86a5a1fe68b32b99fa2eee2fa91c;p=rrdtool.git diff --git a/src/rrd_tool.c b/src/rrd_tool.c index 5eaf105..68d5465 100644 --- a/src/rrd_tool.c +++ b/src/rrd_tool.c @@ -803,8 +803,8 @@ int HandleInputLine( } else if (strcmp("graphv", argv[1]) == 0) { info_t *grinfo = NULL; /* 1 to distinguish it from the NULL that rrd_graph sends in */ - - if (grinfo = rrd_graph_v(argc - 1, &argv[1])) { + grinfo = rrd_graph_v(argc - 1, &argv[1]); + if (grinfo) { info_print(grinfo); info_free(grinfo); }