summaryrefslogtreecommitdiff
path: root/src/user
diff options
context:
space:
mode:
authordzwdz2022-08-26 17:17:39 +0200
committerdzwdz2022-08-26 17:17:39 +0200
commit35cbc783713c814298987ee636d26cfccc5aca96 (patch)
treea3a5a71008b798b84437fe249d848e11d62d805b /src/user
parente7676411e49bfd2e0da0b785ad4ac5dc909d0a41 (diff)
user/find: fix segfault when called with arguments
Diffstat (limited to 'src/user')
-rw-r--r--src/user/app/find/find.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/user/app/find/find.c b/src/user/app/find/find.c
index 6c5d31a..529b54e 100644
--- a/src/user/app/find/find.c
+++ b/src/user/app/find/find.c
@@ -58,10 +58,10 @@ void find(const char *path) {
int main(int argc, char **argv) {
if (argc < 2) {
- recurse("/");
+ find("/");
} else {
for (int i = 1; i < argc; i++)
- recurse(argv[i]);
+ find(argv[i]);
}
return 0;
}