Nikolai Artemiev has uploaded this change for review.
flashrom.c: do not delete programmer arguments
Make extract_param() leave parameters in tact rather than deleting
them as they are retrieved. Deleting them is undesierable as makes
the function more complex and requires that extract_programmer_param()
does not get called for the same parameter multiple times, which can
be difficult to gaurentee for some programmer initialization cases.
Signed-off-by: Nikolai Artemiev <firstname.lastname@example.org>
1 file changed, 0 insertions(+), 5 deletions(-)
git pull ssh://review.coreboot.org:29418/flashrom refs/changes/62/44562/1
diff --git a/flashrom.c b/flashrom.c
index 4a30986..f3f0b46 100644
@@ -750,11 +750,6 @@
strncpy(opt, opt_pos, optlen);
opt[optlen] = '\0';
- rest = opt_pos + optlen;
- /* Skip all delimiters after the current parameter. */
- rest += strspn(rest, delim);
- memmove(param_pos, rest, strlen(rest) + 1);
- /* We could shrink haystack, but the effort is not worth it. */
To view, visit change 44562. To unsubscribe, or for help writing mail filters, visit settings.