mirror of
https://github.com/php/php-src.git
synced 2025-08-15 21:48:51 +02:00
fix condition
This commit is contained in:
parent
9bcd64fd83
commit
184793b5c1
1 changed files with 1 additions and 1 deletions
|
@ -1474,7 +1474,7 @@ not_relative_path:
|
|||
const char *exec_fname = exec_filename->val;
|
||||
size_t exec_fname_length = exec_filename->len;
|
||||
|
||||
while ((--exec_fname_length >= 0) && !IS_SLASH(exec_fname[exec_fname_length]));
|
||||
while ((--exec_fname_length < SIZE_MAX) && !IS_SLASH(exec_fname[exec_fname_length]));
|
||||
if (exec_fname_length<=0) {
|
||||
/* no path */
|
||||
pathbuf = estrdup(path);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue