Code

ruby binding fix: RRD graphv appears to not reset state properly - Sven Engelhardt
authoroetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa>
Tue, 16 Feb 2010 10:54:13 +0000 (10:54 +0000)
committeroetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa>
Tue, 16 Feb 2010 10:54:13 +0000 (10:54 +0000)
git-svn-id: svn://svn.oetiker.ch/rrdtool/branches/1.3@2021 a5681a0c-68f1-0310-ab6d-d61299d08faa

program/bindings/ruby/main.c

index 10b455e9e3ed95e20d0a6258cbc9ba01b5194419..8bd2e427fb923ae90dadc13c7caeaf0ffbc70ed7 100644 (file)
@@ -150,6 +150,7 @@ VALUE rb_rrd_infocall(
     VALUE     result;
 
     a = string_arr_new(args);
+    reset_rrd_state();
     data = func(a.len, a.strings);
     string_arr_delete(a);