diff options
author | Daniel P. Berrangé <berrange@redhat.com> | 2018-05-14 18:19:12 +0100 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2018-07-17 16:24:50 +0200 |
commit | f8da93a0ffa09268815c1942732cbc616a7db847 (patch) | |
tree | 3bdf84407d46ae8bf18c3dd17889415b31afa322 /util | |
parent | 6e3ad3f0e31b8e31c6c0769d0f474bcd9673e0e5 (diff) | |
download | qemu-f8da93a0ffa09268815c1942732cbc616a7db847.zip qemu-f8da93a0ffa09268815c1942732cbc616a7db847.tar.gz qemu-f8da93a0ffa09268815c1942732cbc616a7db847.tar.bz2 |
i386: only parse the initrd_filename once for multiboot modules
The multiboot code parses the initrd_filename twice, first to count how
many entries there are, and second to process each entry. This changes
the first loop to store the parse module names in a list, and the second
loop can now use these names. This avoids having to pass NULL to the
get_opt_value() method which means it can safely assume a non-NULL param.
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
Message-Id: <20180514171913.17664-3-berrange@redhat.com>
Reviewed-by: Eduardo Habkost <ehabkost@redhat.com>
Tested-by: Roman Kagan <rkagan@virtuozzo.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'util')
0 files changed, 0 insertions, 0 deletions