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:
Carsten Haitzler 2010-03-02 02:10:48 +00:00
parent 07a9e63cb4
commit 70c60370ca
1 changed files with 1 additions and 5 deletions

View File

@ -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;
}