提交 6f28fb86 编写于 作者: B bellard

zero file case (Paul Brook)


git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@1064 c046a42c-6fe2-441c-8c8c-71466251a162
上级 c94c8d64
......@@ -101,7 +101,12 @@ void init_paths(const char *prefix)
base = new_entry("", NULL, prefix+1);
base = add_dir_maybe(base);
set_parents(base, base);
if (base->num_entries == 0) {
free (base);
base = NULL;
} else {
set_parents(base, base);
}
}
/* FIXME: Doesn't handle DIR/.. where DIR is not in emulated dir. */
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册