Fix minor issues in user apps

Uninitialized variables, reading past array end, etc.
This commit is contained in:
2026-08-25 21:41:25 +03:00
parent d72169473f
commit b78ef69da8
4 changed files with 10 additions and 6 deletions
+1 -2
View File
@@ -10,8 +10,7 @@ exit_code_t main(uint64_t argc, const char **argv) {
uint64_t code = EXIT_CODE_OK;
for (uint64_t i = 1; i < argc; i++) {
uint64_t removed = remove(argv[i]);
if (removed == (uint64_t)-1) {
if (remove(argv[i]) == (uint64_t)-1) {
ERR_S("rm: could not remove file\n");
code = EXIT_CODE_GENERAL_FAILURE;
}