AIX: Fixed nearly impossible file descriptor leak.

This commit is contained in:
Philipp Wiesemann 2015-06-04 17:52:51 +02:00
parent eab076a7ee
commit 7738bd9b55

View file

@ -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);
}