Use NULL instead of 0.
malloc will return NULL in case it cannot allocate memory.
MFC after: 2 weeks.