X-Git-Url: https://git.saurik.com/apple/dyld.git/blobdiff_plain/0959b6d4289bd106fddb7fe7d84a346159895fdd..3d3c214069595b9b76804893b2eff3c389591dfd:/unit-tests/test-cases/insert-libraries-with-suid/main.c diff --git a/unit-tests/test-cases/insert-libraries-with-suid/main.c b/unit-tests/test-cases/insert-libraries-with-suid/main.c index 0571cd9..c9d015c 100644 --- a/unit-tests/test-cases/insert-libraries-with-suid/main.c +++ b/unit-tests/test-cases/insert-libraries-with-suid/main.c @@ -1,5 +1,5 @@ /* - * Copyright (c) 2005 Apple Computer, Inc. All rights reserved. + * Copyright (c) 2005-2006 Apple Computer, Inc. All rights reserved. * * @APPLE_LICENSE_HEADER_START@ * @@ -34,9 +34,7 @@ int main(int argc, const char *argv[]) { const char* rhs = getenv("DYLD_INSERT_LIBRARIES"); - if ( rhs == NULL ) - FAIL("insert-libraries-with-suid DYLD_INSERT_LIBRARIES not set"); - else if ( rhs[0] != '\0' ) + if ( (rhs != NULL) && (rhs[0] != '\0') ) FAIL("insert-libraries-with-suid DYLD_INSERT_LIBRARIES not cleared"); else PASS("insert-libraries-with-suid");