Check get_node_from() return value (CID 647).

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40074 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Ingo Weinhold 2011-01-02 22:27:10 +00:00
parent 70fc82404f
commit 61aa1456a5

View File

@ -134,6 +134,10 @@ load_module(Directory *volume, const char *name)
continue;
Directory *base = (Directory *)get_node_from(baseFD);
if (base == NULL) {
close(baseFD);
continue;
}
while (true) {
int fd = open_from(base, moduleName, O_RDONLY);