AIX: Fixed nearly impossible file descriptor leak.
authorPhilipp Wiesemann <philipp.wiesemann@arcor.de>
Thu, 04 Jun 2015 17:52:51 +0200
changeset 9704 827a407ee74c
parent 9703 215d1dcd8e90
child 9705 f037dd7d7cc9
AIX: Fixed nearly impossible file descriptor leak.
src/audio/paudio/SDL_paudio.c
--- a/src/audio/paudio/SDL_paudio.c	Thu Jun 04 17:52:27 2015 +0200
+++ b/src/audio/paudio/SDL_paudio.c	Thu Jun 04 17:52:51 2015 +0200
@@ -111,7 +111,7 @@
 
         if (stat(audiopath, &sb) == 0) {
             fd = open(audiopath, flags, 0);
-            if (fd > 0) {
+            if (fd >= 0) {
                 if (path != NULL) {
                     SDL_strlcpy(path, audiopath, maxlen);
                 }