fixes 'can't allocate region' malloc error

The problem was undefined values for some primitive data types. Just setting them to 0 fixed the error for me.