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 <[email protected]> Date: Mon, 28 Mar 2011 22:08:00 To: Florian Krohm<[email protected]> Cc: <[email protected]> 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 ------------------------------------------------------------------------------ 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 _______________________________________________ Valgrind-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/valgrind-users
