mirror of
https://github.com/ipxe/ipxe
synced 2025-12-16 09:32:33 +03:00
[image] Use image_set_name() only if name != NULL
Signed-off-by: Piotr Jaroszyński <p.jaroszynski@gmail.com> Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
committed by
Michael Brown
parent
8ab2f51997
commit
ac8fc2a8e4
@@ -154,6 +154,7 @@ int imgdownload ( struct uri *uri, const char *name, const char *cmdline,
|
||||
return -ENOMEM;
|
||||
|
||||
/* Set image name */
|
||||
if ( name )
|
||||
image_set_name ( image, name );
|
||||
|
||||
/* Set image URI */
|
||||
|
||||
Reference in New Issue
Block a user