]> git.ipfire.org Git - thirdparty/grub.git/commit
kern/parser: Introduce terminate_arg() helper
authorChris Coulson <chris.coulson@canonical.com>
Thu, 7 Jan 2021 19:53:55 +0000 (19:53 +0000)
committerDaniel Kiper <daniel.kiper@oracle.com>
Tue, 2 Mar 2021 14:54:19 +0000 (15:54 +0100)
commit3d157bbd06506b170fde5ec23980c4bf9f7660e2
treefaa2a1aa36b8b3a27f12a915fb1b6a0fe4799534
parentb1c9e9e889e4273fb15712051c887e6078511448
kern/parser: Introduce terminate_arg() helper

process_char() and grub_parser_split_cmdline() use similar code for
terminating the most recent argument. Add a helper function for this.

Signed-off-by: Chris Coulson <chris.coulson@canonical.com>
Reviewed-by: Daniel Kiper <daniel.kiper@oracle.com>
grub-core/kern/parser.c