From 4b1577f80962e8cce055fdb4d6f641187df0bbe0 Mon Sep 17 00:00:00 2001 From: Anton Kling Date: Tue, 31 Dec 2024 16:10:13 +0100 Subject: libc: opendir should not keep a internal offset --- userland/libc/dirent/opendir.c | 2 -- 1 file changed, 2 deletions(-) (limited to 'userland/libc/dirent/opendir.c') diff --git a/userland/libc/dirent/opendir.c b/userland/libc/dirent/opendir.c index efe8b6d..8f5d818 100644 --- a/userland/libc/dirent/opendir.c +++ b/userland/libc/dirent/opendir.c @@ -6,7 +6,6 @@ DIR *fdopendir(int fd) { return NULL; } rc->fd = fd; - rc->dir_num = 0; return rc; } @@ -20,6 +19,5 @@ DIR *opendir(const char *dirname) { return NULL; } rc->fd = fd; - rc->dir_num = 0; return rc; } -- cgit v1.2.3