Code

Fixed uninitialized ptr causing seg fault invoking info for COMPUTE data sources.
authorjake <jake@a5681a0c-68f1-0310-ab6d-d61299d08faa>
Tue, 11 Dec 2001 22:55:28 +0000 (22:55 +0000)
committerjake <jake@a5681a0c-68f1-0310-ab6d-d61299d08faa>
Tue, 11 Dec 2001 22:55:28 +0000 (22:55 +0000)
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk@56 a5681a0c-68f1-0310-ab6d-d61299d08faa

program/src/rrd_info.c

index b7bb8f02fc0ca7395bb0c01dc97be21daf7aeab7..a96c34ce8cbcd6c6654f3aa88f468c7ebee06f99 100644 (file)
@@ -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;