Convert a malloc+memset to a calloc

based on diff from Benjamin Baier (programmer (at) netzbasis.de)