Fix test failure by adding memset

This commit is contained in:
Levin Li 2021-12-31 15:13:14 +08:00
parent d80eb7a069
commit e9a21ffd2b

View file

@ -2987,6 +2987,7 @@ getTypeInfo(NSTimeInterval since, GSTimeZone *zone)
zoneName = [timeZoneName UTF8String];
sp = malloc(sizeof(*sp));
memset((char *)sp, '\0', sizeof(*sp));
NS_DURING
{