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)
This commit is contained in:
Bananymous 2026-01-06 16:15:09 +02:00
parent 3ad053cf6d
commit e926beba5a
1 changed files with 1 additions and 1 deletions

View File

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