Minor issue on using memset