From: oetiker Date: Mon, 28 Nov 2011 07:38:54 +0000 (+0000) Subject: It seems that function graph_size_location() doesn't call xtr(im, 0) if (im->extra_fl... X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=e2c0fa599e4dc0db4672cc1660613f642d41bce0;p=rrdtool-all.git It seems that function graph_size_location() doesn't call xtr(im, 0) if (im->extra_flags & ONLY_GRAPH) != 0. Therefore, static variable pixie in function xtr() remains uninitialized (fix for #322). -- u00mp yandex.ru git-svn-id: svn://svn.oetiker.ch/rrdtool/branches/1.4@2228 a5681a0c-68f1-0310-ab6d-d61299d08faa --- diff --git a/program/src/rrd_graph.c b/program/src/rrd_graph.c index 83478951..3b6da6af 100644 --- a/program/src/rrd_graph.c +++ b/program/src/rrd_graph.c @@ -2925,6 +2925,7 @@ int graph_size_location( im->ximg = im->xsize; im->yimg = im->ysize; im->yorigin = im->ysize; + xtr(im, 0); ytr(im, DNAN); return 0; }