[Solved] memset after malloc [closed]

My guess without a code example is that you were operating on the buffer or struct you malloc’d with assumptions that its contents would be initialized with certain default values. Malloc doesn’t initialize the memory it hands back, so unless you memset or use some other initialization, the values in that memory could be anything, … Read more