mirror of
https://github.com/php/php-src.git
synced 2025-08-15 13:38:49 +02:00
ext/phar: Use normal variable instead of macro
This commit is contained in:
parent
ae9d8099c2
commit
1facbc385a
1 changed files with 2 additions and 2 deletions
|
@ -2180,9 +2180,9 @@ char *phar_fix_filepath(char *path, size_t *new_len, int use_cwd) /* {{{ */
|
|||
ptr_length = ptr - tok;
|
||||
last_time:
|
||||
if (IS_DIRECTORY_UP(tok, ptr_length)) {
|
||||
#define PREVIOUS newpath[newpath_len - 1]
|
||||
const char previous = newpath[newpath_len - 1];
|
||||
|
||||
while (newpath_len > 1 && !IS_BACKSLASH(PREVIOUS)) {
|
||||
while (newpath_len > 1 && !IS_BACKSLASH(previous)) {
|
||||
newpath_len--;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue