david/ipxe
david
/
ipxe
Archived
1
0
Fork 0

[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:
Piotr Jaroszyński 2011-03-27 20:19:47 +02:00 committed by Michael Brown
parent 8ab2f51997
commit ac8fc2a8e4
1 changed files with 2 additions and 1 deletions

View File

@ -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 );