summaryrefslogtreecommitdiffstats
path: root/src/image.c
diff options
context:
space:
mode:
authorPali Rohár <pali.rohar@gmail.com>2015-06-24 19:09:34 +0200
committerPali Rohár <pali.rohar@gmail.com>2015-06-24 19:09:34 +0200
commit75ea4bfbd8218a11370f72ececa864b09eb1c2a3 (patch)
tree985e7436741ba583b53eed5f745e9896da64a922 /src/image.c
parent3f406cc9addbe7155bc05518715bdd292154fbb6 (diff)
download0xFFFF-75ea4bfbd8218a11370f72ececa864b09eb1c2a3.tar.bz2
image: Fix condition for detecting device
Diffstat (limited to 'src/image.c')
-rw-r--r--src/image.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/image.c b/src/image.c
index 5424f9a..0b16de1 100644
--- a/src/image.c
+++ b/src/image.c
@@ -76,7 +76,7 @@ static void image_missing_values_from_name(struct image * image, const char * na
image->type = image_type_from_string(type);
free(type);
- if ( ! image->devices || image->devices->device || image->devices->device == DEVICE_ANY ) {
+ if ( ! image->devices || ! image->devices->device || image->devices->device == DEVICE_ANY ) {
new_device = device_from_string(device);
if ( new_device ) {
if ( ! image->devices ) image->devices = calloc(1, sizeof(struct device_list));