From: Joe Watkins Date: Thu, 28 Apr 2016 14:52:30 +0000 (+0100) Subject: simplify expression X-Git-Tag: php-7.0.7RC1~60 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=2787a24f86d9b73f0fee40e4104b567113ee8e6b;p=php simplify expression --- diff --git a/main/fopen_wrappers.c b/main/fopen_wrappers.c index ab51e5e58b..c3646ee0fd 100644 --- a/main/fopen_wrappers.c +++ b/main/fopen_wrappers.c @@ -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); }