|
From: kosmirror <kos...@us...> - 2025-11-01 05:32:40
|
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "A pseudo Operating System for the Dreamcast.".
The branch, master has been updated
via fab88066d4176b37d037b9d28af82d87589cd145 (commit)
from 6e42550a3e06a960e16e248ea48eae53fe20e5cb (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit fab88066d4176b37d037b9d28af82d87589cd145
Author: Paul Cercueil <pa...@cr...>
Date: Sat Oct 25 11:57:03 2025 +0200
fs: Fix use of uninitialized variable
The 'idx' field was not initialized when opening a directory, which
caused fs_readdir() to behave erratically.
Signed-off-by: Paul Cercueil <pa...@cr...>
-----------------------------------------------------------------------
Summary of changes:
kernel/fs/fs.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/kernel/fs/fs.c b/kernel/fs/fs.c
index c2c3395d..d224a834 100644
--- a/kernel/fs/fs.c
+++ b/kernel/fs/fs.c
@@ -155,6 +155,7 @@ static fs_hnd_t * fs_hnd_open(const char *fn, int mode) {
hnd->handler = cur;
hnd->hnd = h;
hnd->refcnt = 0;
+ hnd->idx = 0;
return hnd;
}
hooks/post-receive
--
A pseudo Operating System for the Dreamcast.
|