Explorar o código

Minor streamlining.

Ryan C. Gordon %!s(int64=24) %!d(string=hai) anos
pai
achega
c2a4dd6378
Modificáronse 1 ficheiros con 1 adicións e 2 borrados
  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);
                 retval = 0;
-                break;
             } /* if */
 
-            /* break out early if path element is missing. */
+            /* break out early if path element is missing or it's a symlink. */
             if (!retval)
                 break;
         } /* if */