소스 검색

AIX: Fixed nearly impossible file descriptor leak.

Philipp Wiesemann 10 년 전
부모
커밋
7738bd9b55
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      src/audio/paudio/SDL_paudio.c

+ 1 - 1
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);
                 }