From a79a3b955cdc38c6dec741ac9cb0e9a7d6c66275 Mon Sep 17 00:00:00 2001 From: oetiker Date: Tue, 7 Apr 2009 07:20:18 +0000 Subject: [PATCH] fix lazy fix ... syntax error git-svn-id: svn://svn.oetiker.ch/rrdtool/branches/1.3@1775 a5681a0c-68f1-0310-ab6d-d61299d08faa --- program/src/rrd_graph.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/program/src/rrd_graph.c b/program/src/rrd_graph.c index 2ad2cb1d..0d880ef3 100644 --- a/program/src/rrd_graph.c +++ b/program/src/rrd_graph.c @@ -3048,7 +3048,7 @@ int graph_paint( if (i < 0) return -1; - if ((i == 0)) + if (i == 0) return 0; /************************************************************** @@ -3076,9 +3076,8 @@ int graph_paint( grinfo_push(im, sprintf_alloc("graph_end"), RD_I_CNT, info); /* if we want and can be lazy ... quit now */ - if (lazy){ - return 0 - }; + if (lazy) + return 0; /* get actual drawing data and find min and max values */ if (data_proc(im) == -1) -- 2.30.2