This explicitly initializes variable `onceinit` before use. Signed-off-by: Yanfeng Liu <yfliu2008@qq.com>