
1 Apr
2025
1 Apr
'25
10:38 a.m.
On a Friday in 2025, Peter Krempa via Devel wrote:
From: Peter Krempa <pkrempa@redhat.com>
Use a 'switch' statement instead of a bunch of if statements to do validation and selection what to parse.
Remove the pre-clearing of the struct as we always alocate cleared
allocate
memory for it and we can reorder assignments to avoid the need for cleanup.
Signed-off-by: Peter Krempa <pkrempa@redhat.com> --- src/conf/domain_conf.c | 68 ++++++++++++++++++++++-------------------- 1 file changed, 36 insertions(+), 32 deletions(-)
Reviewed-by: Ján Tomko <jtomko@redhat.com> Jano