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