From 0cccd0392dd9cf40a8453098238cfbad397c4744 Mon Sep 17 00:00:00 2001 From: kevin Date: Sat, 1 Feb 2014 12:49:05 -0800 Subject: [PATCH] cmGrPlot.c : Fixed apparent but in _cmGrPlotObjIsSelected() Changed: memset(a,0,sizeof(a)) to: memset(a,0,sizeof(*a)); --- cmGrPlot.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmGrPlot.c b/cmGrPlot.c index 68b0a39..fa91823 100644 --- a/cmGrPlot.c +++ b/cmGrPlot.c @@ -187,7 +187,7 @@ void _cmGrPlotObjSetupCbArg( cmGrPlotCbArg_t* a, cmGrPlotObj_t* op, cmGrPlCbSelI cmGrPlObjH_t oH; oH.h = op; - memset(a,0,sizeof(a)); + memset(a,0,sizeof(*a)); a->ctx = op->p->ctx; a->cbArg = op->cbArg; a->selId = selId;