Changed the memset call to properly fill allocated memory with zeros. The previous call mistakenly passed 0 as the source, which has been corrected to pass the value to fill the memory with.
Added the necessary string.h header, to ensure the declaration of the memset function is included. This was missing, causing compilation errors.
Changed the
memset
call to properly fill allocated memory with zeros. The previous call mistakenly passed 0 as the source, which has been corrected to pass the value to fill the memory with.Added the necessary string.h header, to ensure the declaration of the
memset
function is included. This was missing, causing compilation errors.