mirror of
https://github.com/xcat2/xNBA.git
synced 2025-04-17 10:39:26 +00: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:
parent
8ab2f51997
commit
ac8fc2a8e4
@ -154,7 +154,8 @@ int imgdownload ( struct uri *uri, const char *name, const char *cmdline,
|
||||
return -ENOMEM;
|
||||
|
||||
/* Set image name */
|
||||
image_set_name ( image, name );
|
||||
if ( name )
|
||||
image_set_name ( image, name );
|
||||
|
||||
/* Set image URI */
|
||||
image_set_uri ( image, uri );
|
||||
|
Loading…
x
Reference in New Issue
Block a user