8000 Fix bug GH-11246 cli/get_set_process_title initialisation failure on MacOS by lucasnetau · Pull Request #11247 · php/php-src · GitHub
[go: up one dir, main page]

Skip to content

Fix bug GH-11246 cli/get_set_process_title initialisation failure on MacOS #11247

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 3 commits into from
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Remove unused non_contiguous_area variable
  • Loading branch information
lucasnetau committed May 31, 2023
commit 5d0163c46c5499bf577a0ca127b248a3e48fc44a
5 changes: 3 additions & 2 deletions sapi/cli/ps_title.c
Original file line number Diff line number Diff line change
Expand Up @@ -173,10 +173,11 @@ char** save_ps_args(int argc, char** argv)
/*
* check for contiguous environ strings following argv
*/
for (i = 0; (non_contiguous_area == 0) && (environ[i] != NULL); i++)
for (i = 0; environ[i] != NULL; i++)
{
if (end_of_area + 1 == environ[i])
if (end_of_area + 1 == environ[i]) {
end_of_area = environ[i] + strlen(environ[i]);
}
}

ps_buffer = argv[0];
Expand Down
0