vfs: add assert

This commit is contained in:
Matheus
2024-04-20 15:45:46 -03:00
parent e9ea25fa07
commit 65ca92b3a3
+1
View File
@@ -287,6 +287,7 @@ int vfs_lookup(vnode_t **result, vnode_t *start, char *path, char *lastcomp, int
}
if (islast && (flags & VFS_LOOKUP_PARENT)) {
__assert(lastcomp);
strcpy(lastcomp, component);
break;
}