X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Frrd_tool.c;h=68d546552d60c8f64896b550a4e83abe06238b93;hb=622adf9826b98d3982278c57ab9a0f8fc6041b03;hp=b16a1942a585ac5b95bbccdcda5da9481c4bd6fb;hpb=ea8c705cc27ef33dee2cc6561ed51e16ddc5d0a9;p=rrdtool.git diff --git a/src/rrd_tool.c b/src/rrd_tool.c index b16a194..68d5465 100644 --- a/src/rrd_tool.c +++ b/src/rrd_tool.c @@ -803,7 +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); }