Re: [PATCH v5 8/9] cryptodisk: Move global variables into grub_cryptomount_args struct

2021-12-20 Thread Daniel Kiper
On Thu, Dec 09, 2021 at 11:14:57AM -0600, Glenn Washburn wrote: > Note that cargs.search_uuid does not need to be initialized in various parts > of the cryptomount argument parsing, just once when cargs is declared with a > struct initializer. The previous code used a global variable which would >

[PATCH v5 8/9] cryptodisk: Move global variables into grub_cryptomount_args struct

2021-12-09 Thread Glenn Washburn
Note that cargs.search_uuid does not need to be initialized in various parts of the cryptomount argument parsing, just once when cargs is declared with a struct initializer. The previous code used a global variable which would retain the value across cryptomount invocations. Signed-off-by: Glenn W