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: ");