Fix valgrind warning

This commit is contained in:
Benau 2020-01-04 01:38:57 +08:00
parent 6b032d6a2c
commit c8d0361837

View File

@ -367,6 +367,7 @@ const char * set_encoding(
const char * loc = "";
int alias;
char norm[ NAMLEN];
memset(norm, 0, NAMLEN);
/*
* Normalized name (removed 'xxxxx.', stripped '_', '-', '.'
* and lowered.