Skip to content

Commit

Permalink
AIX: Fixed nearly impossible file descriptor leak.
Browse files Browse the repository at this point in the history
  • Loading branch information
philippwiesemann committed Jun 4, 2015
1 parent eab076a commit 7738bd9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/audio/paudio/SDL_paudio.c
Expand Up @@ -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);
}
Expand Down

0 comments on commit 7738bd9

Please sign in to comment.