forked from enlightenment/efl
ok use calloc - but.. i think llvm is wrong for:
http://people.profusion.mobi/~lfelipe/static_analysis/efl/efl-46715/evas/2010-03-01-1/report-wLmp95.html#EndPath i can't see how that can be garbage. SVN revision: 46764
This commit is contained in:
parent
07a9e63cb4
commit
70c60370ca
|
@ -11,11 +11,7 @@ evas_common_draw_context_cutouts_new(void)
|
|||
{
|
||||
Cutout_Rects *rects;
|
||||
|
||||
rects = malloc(sizeof(Cutout_Rects));
|
||||
rects->rects = NULL;
|
||||
rects->active = 0;
|
||||
rects->max = 0;
|
||||
|
||||
rects = calloc(1, sizeof(Cutout_Rects));
|
||||
return rects;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue