|
From: Santosh N. <san...@gm...> - 2011-03-29 13:34:45
|
Hi Satya, I have ensured that the initialization occurs before the data is used/printed. So I believe memset is not required. I could give this a try and see if it works. By the way, I figured out the error and it is a improper incrementing of a variable. Thanks Santosh On Tue, Mar 29, 2011 at 3:41 AM, <gup...@ne...> wrote: > A memset immediately after the malloc but before the for loop should take > care of this problem. The for loop may execute before your other nested > initialization occurs. > > memset(matrix, 0, (size * sizeof(in))); > > Satya > Sent from my Verizon Wireless BlackBerry > > -----Original Message----- > From: Santosh Navale <san...@gm...> > Date: Mon, 28 Mar 2011 22:08:00 > To: Florian Krohm<br...@ac...> > Cc: <val...@li...> > Subject: Re: [Valgrind-users] Problem resolving a Valgrind reported error > > > ------------------------------------------------------------------------------ > Enable your software for Intel(R) Active Management Technology to meet the > growing manageability and security demands of your customers. Businesses > are taking advantage of Intel(R) vPro (TM) technology - will your software > be a part of the solution? Download the Intel(R) Manageability Checker > today! http://p.sf.net/sfu/intel-dev2devmar > |