Once upon a time, Tobias Oetiker <[EMAIL PROTECTED]> said: > if you look at rrd_rpncalc.c you can see that count gets > initialized to zero on the first line ... or am I pointerconfused ?
The pointer that isn't getting initialized is passed to addop2str() in **result_str, which is called from rpn_compact2str(). In rrd_info.c, this arg is declared with "char *buffer = 0;", but rrd_dump.c and rrd_tune.c don't initialize this pointer. addop2str() takes the passed pointer and sends it to realloc(), which when given an non-zero pointer that didn't come from malloc(), calloc(), or realloc() aborts. -- Chris Adams <[EMAIL PROTECTED]> Systems and Network Administrator - HiWAAY Internet Services I don't speak for anybody but myself - that's enough trouble. -- Unsubscribe mailto:[EMAIL PROTECTED] Help mailto:[EMAIL PROTECTED] Archive http://lists.ee.ethz.ch/rrd-developers WebAdmin http://lists.ee.ethz.ch/lsg2.cgi
