summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: d53241d)
raw | patch | inline | side by side (parent: d53241d)
author | oetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa> | |
Thu, 1 Aug 2002 05:42:27 +0000 (05:42 +0000) | ||
committer | oetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa> | |
Thu, 1 Aug 2002 05:42:27 +0000 (05:42 +0000) |
-- Paul Clifford <paul.clifford@bbc.co.uk>
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@161 a5681a0c-68f1-0310-ab6d-d61299d08faa
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@161 a5681a0c-68f1-0310-ab6d-d61299d08faa
src/rrd_graph.c | patch | blob | history |
diff --git a/src/rrd_graph.c b/src/rrd_graph.c
index 18be57376507aada5ab24a74e34d1d3a8748a120..2fc65263a5d3e93564b64abfb171da7650bbef36 100644 (file)
--- a/src/rrd_graph.c
+++ b/src/rrd_graph.c
if (im->gdes[i].gf == GF_PRINT){
(*prdata)[prlines-2] = malloc((FMT_LEG_LEN+2)*sizeof(char));
+ (*prdata)[prlines-1] = NULL;
if (bad_format(im->gdes[i].format)) {
rrd_set_error("bad format for [G]PRINT in '%s'", im->gdes[i].format);
return -1;
#else
sprintf((*prdata)[prlines-2],im->gdes[i].format,printval,si_symb);
#endif
- (*prdata)[prlines-1] = NULL;
} else {
/* GF_GPRINT */