rrd_value_t pdp_temp_val,
unsigned long elapsed_pdp_st,
int current_cf,
+#ifdef DEBUG
int i,
- int ii)
+ int ii
+#else
+ int UNUSED(i),
+ int UNUSED(ii)
+#endif
+)
{
if (isnan(cdp_val)) {
if (current_cf == CF_AVERAGE) {
rrd->cdp_prep[cdp_idx].scratch[CDP_scratch_idx].u_val,
rrd_file->pos, rrd->rra_def[rra_idx].cf_nam);
#endif
- if (pcdp_summary != NULL) {
+ if (*pcdp_summary != NULL) {
iv.u_val = rrd->cdp_prep[cdp_idx].scratch[CDP_scratch_idx].u_val;
/* append info to the return hash */
*pcdp_summary = info_push(*pcdp_summary,