mirror of
https://github.com/Mathewnd/Astral.git
synced 2026-11-01 15:08:21 +00:00
vfs: add assert
This commit is contained in:
@@ -287,6 +287,7 @@ int vfs_lookup(vnode_t **result, vnode_t *start, char *path, char *lastcomp, int
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (islast && (flags & VFS_LOOKUP_PARENT)) {
|
if (islast && (flags & VFS_LOOKUP_PARENT)) {
|
||||||
|
__assert(lastcomp);
|
||||||
strcpy(lastcomp, component);
|
strcpy(lastcomp, component);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user