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
   cmGrPlObjH_t    oH;
187
   cmGrPlObjH_t    oH;
188
   oH.h = op;
188
   oH.h = op;
189
 
189
 
190
-  memset(a,0,sizeof(a));
190
+  memset(a,0,sizeof(*a));
191
   a->ctx   = op->p->ctx;
191
   a->ctx   = op->p->ctx;
192
   a->cbArg = op->cbArg;
192
   a->cbArg = op->cbArg;
193
   a->selId = selId;
193
   a->selId = selId;

Loading…
Cancel
Save