com php-src: simplify expression: main/fopen_wrappers.c

From: Date: Thu, 28 Apr 2016 14:52:30 +0000
Subject: com php-src: simplify expression: main/fopen_wrappers.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-91913@lists.php.net to get a copy of this message
Commit: 2787a24f86d9b73f0fee40e4104b567113ee8e6b Author: Joe Watkins <krakjoe@php.net> Thu, 28 Apr 2016 15:52:30 +0100 Parents: f580540c8d5ea08a9e3ea8a5ed6c19344ca84066 Branches: master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=2787a24f86d9b73f0fee40e4104b567113ee8e6b Log: simplify expression Changed paths: M main/fopen_wrappers.c Diff: diff --git a/main/fopen_wrappers.c b/main/fopen_wrappers.c index ab51e5e..c3646ee 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); }

« previous php.cvs (#91913) next »