Skip to content

Commit

Permalink
fix uninited memory reads in gcarray
Browse files Browse the repository at this point in the history
SG_MALLOC -> SG_CALLOC does the job
  • Loading branch information
Soeren Sonnenburg committed May 5, 2012
1 parent ea70748 commit c896d91
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/shogun/lib/GCArray.h
Expand Up @@ -44,7 +44,7 @@ IGNORE_IN_CLASSLIST template <class T> class CGCArray : public CSGObject
CGCArray(int32_t sz) : CSGObject()
{
ASSERT(sz>0);
array = SG_MALLOC(T, sz);
array = SG_CALLOC(T, sz);
size=sz;
}

Expand Down

0 comments on commit c896d91

Please sign in to comment.