Code

fix ruby binding for rrd_xport #318
authoroetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa>
Thu, 20 Oct 2011 06:48:39 +0000 (06:48 +0000)
committeroetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa>
Thu, 20 Oct 2011 06:48:39 +0000 (06:48 +0000)
git-svn-id: svn://svn.oetiker.ch/rrdtool/branches/1.4@2206 a5681a0c-68f1-0310-ab6d-d61299d08faa

program/bindings/ruby/main.c

index 6dc229b8691d1625404ea3ca54311f7d68a6adca..445eae3d2cc371e3b8ecae5486665b95f65b84ee 100644 (file)
@@ -333,6 +333,7 @@ VALUE rb_rrd_xport(
     time_t start, end;
 
     a = string_arr_new(args);
+    reset_rrd_state();
     rrd_xport(a.len, a.strings, &xxsize, &start, &end, &step, &col_cnt, &legend_v, &data);
     string_arr_delete(a);