diff options
| author | Amlal EL Mahrouss <amlalelmahrouss@icloud.com> | 2024-07-29 11:52:08 +0200 |
|---|---|---|
| committer | Amlal EL Mahrouss <amlalelmahrouss@icloud.com> | 2024-07-29 11:52:08 +0200 |
| commit | 6cfc4f283c8e068bc1345c46149b90a86be40a2f (patch) | |
| tree | abe3318b61ee43e3b8d4c9893201f78152ad62f4 /Kernel/Sources/Utils.cxx | |
| parent | 0d661d2587046d3fc078bc15a089b94489c08a8d (diff) | |
[MHR-37] Last commit on ticket.
Signed-off-by: Amlal EL Mahrouss <amlalelmahrouss@icloud.com>
Diffstat (limited to 'Kernel/Sources/Utils.cxx')
| -rw-r--r-- | Kernel/Sources/Utils.cxx | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/Kernel/Sources/Utils.cxx b/Kernel/Sources/Utils.cxx index eeac3f93..152f28fa 100644 --- a/Kernel/Sources/Utils.cxx +++ b/Kernel/Sources/Utils.cxx @@ -29,9 +29,6 @@ namespace Kernel Size rt_string_len(const Char* str, SizeT _len) { - if (*str == '\0') - return 0; - Size len{0}; while (str[len] != '\0') { @@ -40,7 +37,7 @@ namespace Kernel return 0; } - ++len; + len++; } return len; |
