fix border condition in rra selection of rrd_fetch
[rrdtool.git] / src / rrd_info.c
index b7bb8f0..d236460 100644 (file)
@@ -1,5 +1,5 @@
 /*****************************************************************************
- * RRDtool 1.0.33  Copyright Tobias Oetiker, 1997 - 2000
+ * RRDtool 1.1.x  Copyright Tobias Oetiker, 1997 - 2002
  *****************************************************************************
  * rrd_info  Get Information about the configuration of an RRD
  *****************************************************************************/
@@ -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;