summaryrefslogtreecommitdiff
path: root/src/kernel/vfs/path.c
diff options
context:
space:
mode:
authordzwdz2021-08-22 11:58:47 +0200
committerdzwdz2021-08-22 11:58:47 +0200
commit175b575bbdca5d620c1ace1281568b2bb9c6b021 (patch)
treec2a660ca76031acb07c3b9648022b781dddfeb50 /src/kernel/vfs/path.c
parent5aaf1d48ec052d1582eae2c7642adc8829a6711b (diff)
kernel: implement assert
Diffstat (limited to 'src/kernel/vfs/path.c')
-rw-r--r--src/kernel/vfs/path.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/kernel/vfs/path.c b/src/kernel/vfs/path.c
index 1cdcfe4..dad4373 100644
--- a/src/kernel/vfs/path.c
+++ b/src/kernel/vfs/path.c
@@ -11,8 +11,7 @@ int path_simplify(const char *in, char *out, size_t len) {
bool directory = 0;
for (int i = 0; i < len; i += seg_len + 1) {
- // TODO implement assert
- if (in[i] != '/') panic();
+ assert(in[i] == '/');
seg_len = 0;
directory = false;