backport one patch to init string buffer before reading from it Signed-off-by: Zhiqiang Liu <liuzhiqiang26@huawei.com>