calloc() to initialize memory
Merge pull request #1574 from linquize/calloc

Use calloc() for safety