mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-06-28 08:48:43 +00:00
AIX: Fixed nearly impossible file descriptor leak.
This commit is contained in:
parent
eab076a7ee
commit
7738bd9b55
1 changed files with 1 additions and 1 deletions
|
|
@ -111,7 +111,7 @@ OpenAudioPath(char *path, int maxlen, int flags, int classic)
|
|||
|
||||
if (stat(audiopath, &sb) == 0) {
|
||||
fd = open(audiopath, flags, 0);
|
||||
if (fd > 0) {
|
||||
if (fd >= 0) {
|
||||
if (path != NULL) {
|
||||
SDL_strlcpy(path, audiopath, maxlen);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue