image: Fix image_missing_values_from_name
This commit is contained in:
1 parent
131e8bbe1f
commit
0e687beed3
1 file changed
+1
-1
+1
-1
@@ -72,7 +72,7 @@ static void image_missing_values_from_name(struct image * image, const char * na
|
|||||||
image->type = image_type_from_string(type);
|
image->type = image_type_from_string(type);
|
||||||
free(type);
|
free(type);
|
||||||
|
|
||||||
if ( ! image->device )
|
if ( ! image->device || image->device == DEVICE_ANY )
|
||||||
image->device = device_from_string(device);
|
image->device = device_from_string(device);
|
||||||
free(device);
|
free(device);
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user