提交 dd5ae5f2 编写于 作者: M Michal Privoznik

virfilemock: Init symbols in canonicalize_file_name()

If a program that is using this mock calls canonicalize_file_name()
as the very first function then it will face SIGSEGV because
real_canonicalize_file_name is uninitialized.
Signed-off-by: NMichal Privoznik <mprivozn@redhat.com>
上级 1ec3e397
......@@ -177,6 +177,9 @@ statfs(const char *path, struct statfs *buf)
char *
canonicalize_file_name(const char *path)
{
init_syms();
if (getenv("LIBVIRT_MTAB")) {
const char *p;
char *ret;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册