"leaf" may be NULL, fixed crashing bug I introduced with
vfs_entry_ref_to_path(). git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@24154 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
7d5ff380e2
commit
0c415f6265
@ -3647,7 +3647,7 @@ vfs_entry_ref_to_path(dev_t device, ino_t inode, const char *leaf,
|
||||
status_t status;
|
||||
|
||||
// filter invalid leaf names
|
||||
if (leaf[0] == '\0' || strchr(leaf, '/'))
|
||||
if (leaf != NULL && (leaf[0] == '\0' || strchr(leaf, '/')))
|
||||
return B_BAD_VALUE;
|
||||
|
||||
// get the vnode matching the dir's node_ref
|
||||
|
Loading…
Reference in New Issue
Block a user