Browse Source

cmGrPlot.c : Fixed apparent but in _cmGrPlotObjIsSelected()

Changed: memset(a,0,sizeof(a))
to:      memset(a,0,sizeof(*a));
master
kevin 10 years ago
parent
commit
0cccd0392d
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      cmGrPlot.c

+ 1
- 1
cmGrPlot.c View File

@@ -187,7 +187,7 @@ void _cmGrPlotObjSetupCbArg( cmGrPlotCbArg_t* a, cmGrPlotObj_t* op, cmGrPlCbSelI
187 187
   cmGrPlObjH_t    oH;
188 188
   oH.h = op;
189 189
 
190
-  memset(a,0,sizeof(a));
190
+  memset(a,0,sizeof(*a));
191 191
   a->ctx   = op->p->ctx;
192 192
   a->cbArg = op->cbArg;
193 193
   a->selId = selId;

Loading…
Cancel
Save