From: jake Date: Tue, 11 Dec 2001 22:55:28 +0000 (+0000) Subject: Fixed uninitialized ptr causing seg fault invoking info for COMPUTE data sources. X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=aea715557e4b0bc87442b15aa5995b73a4e5e6f6;p=rrdtool-all.git Fixed uninitialized ptr causing seg fault invoking info for COMPUTE data sources. git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk@56 a5681a0c-68f1-0310-ab6d-d61299d08faa --- diff --git a/program/src/rrd_info.c b/program/src/rrd_info.c index b7bb8f02..a96c34ce 100644 --- a/program/src/rrd_info.c +++ b/program/src/rrd_info.c @@ -98,7 +98,7 @@ rrd_info(int argc, char **argv) { switch (current_ds) { case DST_CDEF: { - char *buffer; + char *buffer = 0; rpn_compact2str((rpn_cdefds_t *) &(rrd.ds_def[i].par[DS_cdef]), rrd.ds_def, &buffer); info.u_str = buffer;