mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-10-02 16:08:30 +00:00
Linux: Fixed not needed call to close() on error.
It was called if file descriptor was none and -1.
This commit is contained in:
@@ -390,8 +390,8 @@ SDL_SYS_HapticName(int index)
|
||||
/* No name found, return device character device */
|
||||
name = item->fname;
|
||||
}
|
||||
}
|
||||
close(fd);
|
||||
}
|
||||
|
||||
return name;
|
||||
}
|
||||
|
Reference in New Issue
Block a user