Skip to content

Fix -loadbalancing parsing when used as the final option - #3974

Open
w1boost1889M wants to merge 1 commit into
cisco:masterfrom
w1boost1889M:fix-loadbalancing-arg-check
Open

Fix -loadbalancing parsing when used as the final option#3974
w1boost1889M wants to merge 1 commit into
cisco:masterfrom
w1boost1889M:fix-loadbalancing-arg-check

Conversation

@w1boost1889M

Copy link
Copy Markdown

Summary

Fix command-line parsing of the -loadbalancing encoder option when it is placed at the end of the argument list.

Problem

-loadbalancing consumes one value, but its argument availability check currently requires two remaining arguments:

(n + 1 < argc)

As a result, a valid final argument pair such as:

-loadbalancing 0

is silently ignored, leaving the default load-balancing setting enabled.

Fix

Use the same one-argument availability check as the surrounding single-value options:

(n < argc)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant