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:
parent
70fc82404f
commit
61aa1456a5
@ -134,6 +134,10 @@ load_module(Directory *volume, const char *name)
|
|||||||
continue;
|
continue;
|
||||||
|
|
||||||
Directory *base = (Directory *)get_node_from(baseFD);
|
Directory *base = (Directory *)get_node_from(baseFD);
|
||||||
|
if (base == NULL) {
|
||||||
|
close(baseFD);
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
while (true) {
|
while (true) {
|
||||||
int fd = open_from(base, moduleName, O_RDONLY);
|
int fd = open_from(base, moduleName, O_RDONLY);
|
||||||
|
Loading…
Reference in New Issue
Block a user