memset 0 for FastCharConverter

pull/10/head
yuqing 2016-11-25 09:06:28 +08:00
parent e2735189a5
commit abc9882418
1 changed files with 1 additions and 0 deletions

View File

@ -28,6 +28,7 @@ int char_converter_init(FastCharConverter *pCharConverter,
return EINVAL; return EINVAL;
} }
memset(pCharConverter, 0, sizeof(FastCharConverter));
pCharConverter->count = count; pCharConverter->count = count;
for (i=0; i<count; i++) for (i=0; i<count; i++)
{ {