Fix coverity issues

memset here plz broski