From 7738bd9b55c3bc88e0dc4d422aef02570de33b93 Mon Sep 17 00:00:00 2001 From: Philipp Wiesemann Date: Thu, 4 Jun 2015 17:52:51 +0200 Subject: [PATCH] AIX: Fixed nearly impossible file descriptor leak. --- src/audio/paudio/SDL_paudio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/audio/paudio/SDL_paudio.c b/src/audio/paudio/SDL_paudio.c index 5edd21a05797e..79c71645c4504 100644 --- a/src/audio/paudio/SDL_paudio.c +++ b/src/audio/paudio/SDL_paudio.c @@ -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); }