X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=src%2Frrd_update.c;h=01e756d1e9bfe0a9930ac9e13f554cee05318356;hb=3a9760d1aea27a60cf558cf8998042acc455fd61;hp=b3cc86c801ab6c3f51e4eccec24a2df4bf368ca0;hpb=40cc8b00296079815f08c2ff55f134efae83ea69;p=rrdtool.git diff --git a/src/rrd_update.c b/src/rrd_update.c index b3cc86c..01e756d 100644 --- a/src/rrd_update.c +++ b/src/rrd_update.c @@ -1963,7 +1963,7 @@ static int write_RRA_row( 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,