Initialize elements of vector before using it at first time.

Signed-off-by: gnolizuh <huzilong_007@163.com>