Skip to content
Closed
Changes from all commits
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
4 changes: 3 additions & 1 deletion init/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,9 @@ static int __init set_init_arg(char *param, char *val,

repair_env_string(param, val, unused, NULL);

for (i = 0; argv_init[i]; i++) {
i = 0;
while(argv_init[i]){

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why change while

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Any special gain?

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also on first iteration i = 1 not 0 as it is with the for

i++;

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This skips i = 0, I believe.

if (i == MAX_INIT_ARGS) {
panic_later = "init";
panic_param = param;
Expand Down