From e926beba5a68563c0ff259cd524d0c61a5cffb43 Mon Sep 17 00:00:00 2001 From: Bananymous Date: Tue, 6 Jan 2026 16:15:09 +0200 Subject: [PATCH] test-mouse: Fix mouse fd cleanup I was creating a local variable shadowing the global one. This prevented cleanup to close it. (this is not really necessary as the program dies anyway) --- userspace/tests/test-mouse/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/userspace/tests/test-mouse/main.cpp b/userspace/tests/test-mouse/main.cpp index f9017d4b..118213aa 100644 --- a/userspace/tests/test-mouse/main.cpp +++ b/userspace/tests/test-mouse/main.cpp @@ -103,7 +103,7 @@ int main(int argc, char** argv) return 1; } - int mouse_fd = open(mouse_path, O_RDONLY); + mouse_fd = open(mouse_path, O_RDONLY); if (mouse_fd == -1) { fprintf(stderr, "open: ");