]> granicus.if.org Git - php/commitdiff
simplify expression
authorJoe Watkins <krakjoe@php.net>
Thu, 28 Apr 2016 14:52:30 +0000 (15:52 +0100)
committerJoe Watkins <krakjoe@php.net>
Thu, 28 Apr 2016 14:52:30 +0000 (15:52 +0100)
main/fopen_wrappers.c

index ab51e5e58bc809194f95feebf525907b4324e3ad..c3646ee0fd26cd552b5e11063a61a76e34a5fcd0 100644 (file)
@@ -647,7 +647,7 @@ PHPAPI FILE *php_fopen_with_path(const char *filename, const char *mode, const c
        if ((*filename == '.')
        /* Absolute path open */
         || IS_ABSOLUTE_PATH(filename, filename_length)
-        || (!path || (path && !*path))
+        || (!path || !*path)
        ) {
                return php_fopen_and_set_opened_path(filename, mode, opened_path);
        }