소스 검색

Minor streamlining.

Ryan C. Gordon 24 년 전
부모
커밋
c2a4dd6378
1개의 변경된 파일과 1개의 추가작업 그리고 2개의 파일을 삭제
  1. 1 2
      physfs.c

+ 1 - 2
physfs.c

@@ -1227,10 +1227,9 @@ int __PHYSFS_verifySecurity(DirHandle *h, const char *fname)
             {
             {
                 __PHYSFS_setError(ERR_SYMLINK_DISALLOWED);
                 __PHYSFS_setError(ERR_SYMLINK_DISALLOWED);
                 retval = 0;
                 retval = 0;
-                break;
             } /* if */
             } /* if */
 
 
-            /* break out early if path element is missing. */
+            /* break out early if path element is missing or it's a symlink. */
             if (!retval)
             if (!retval)
                 break;
                 break;
         } /* if */
         } /* if */