diff options
author | dzwdz | 2021-08-22 11:58:47 +0200 |
---|---|---|
committer | dzwdz | 2021-08-22 11:58:47 +0200 |
commit | 175b575bbdca5d620c1ace1281568b2bb9c6b021 (patch) | |
tree | c2a660ca76031acb07c3b9648022b781dddfeb50 /src/kernel/vfs/path.c | |
parent | 5aaf1d48ec052d1582eae2c7642adc8829a6711b (diff) |
kernel: implement assert
Diffstat (limited to 'src/kernel/vfs/path.c')
-rw-r--r-- | src/kernel/vfs/path.c | 3 |
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; |