[rrd-developers] small bug in 1.0.49

hunter at mimuw.edu.pl hunter at mimuw.edu.pl
Sun Feb 27 19:59:42 MET 2005


Hello !

've found a little bug with rrdcgi, in setenv routine. SETENV works OK,
but sill gives an error message.

here is patch:

--- rrdtool-1.0.49/src/rrd_cgi.c-aqq	2005-02-27 18:19:09.000000000 +0100
+++ rrdtool-1.0.49/src/rrd_cgi.c	2005-02-27 18:19:29.000000000 +0100
@@ -387,6 +387,7 @@
 			free(xyz);
 			return stralloc("[ERROR: failed to do putenv]");
 		};
+		return stralloc("");
 	}
 	return stralloc("[ERROR: setenv failed because not enough "
 		  			"arguments were defined]");

Best Regards,

kd.

-- 
Krzysztof Drewicz
Podsłuchane na pogrzebie: "Wiem, że to niezręcznie pytać o takie rzeczy w tej
chwili, ale przypominasz sobie, żeby on kiedykolwiek wspomniał coś o kodzie
źródłowym?"                         --- Charles Addams

--
Unsubscribe mailto:rrd-developers-request at list.ee.ethz.ch?subject=unsubscribe
Help        mailto:rrd-developers-request at list.ee.ethz.ch?subject=help
Archive     http://www.ee.ethz.ch/~slist/rrd-developers
WebAdmin    http://www.ee.ethz.ch/~slist/lsg2.cgi



More information about the rrd-developers mailing list