From ab75884371a3545f7548498549e2faebbc465ed6 Mon Sep 17 00:00:00 2001 From: Andrew Opalach Date: Tue, 12 Aug 2025 17:38:09 -0400 Subject: Improve inotify usage, copy path in file_stdio Signed-off-by: Andrew Opalach --- src/util/file/file_stdio.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/util/file') diff --git a/src/util/file/file_stdio.c b/src/util/file/file_stdio.c index 97dd0f0..fa74be7 100644 --- a/src/util/file/file_stdio.c +++ b/src/util/file/file_stdio.c @@ -49,6 +49,8 @@ bool nn_file_open(struct nn_file *file, str *path, s32 flags) return false; } + al_str_clone(&file->path, path); + return true; } @@ -112,6 +114,7 @@ void *nn_file_mmap(struct nn_file *file) void nn_file_close(struct nn_file *file) { fclose(file->file); + al_str_free(&file->path); } bool nn_dir_open(struct nn_dir *dir, str *path) { (void)dir; (void)path; return false; } -- cgit v1.2.3-101-g0448