From 175b575bbdca5d620c1ace1281568b2bb9c6b021 Mon Sep 17 00:00:00 2001 From: dzwdz Date: Sun, 22 Aug 2021 11:58:47 +0200 Subject: kernel: implement assert --- src/kernel/vfs/path.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/kernel/vfs') 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; -- cgit v1.2.3