Fix an improper use of memset.