summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/common_device_name.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common_device_name.c b/src/common_device_name.c
index 66c2104..b105187 100644
--- a/src/common_device_name.c
+++ b/src/common_device_name.c
@@ -228,7 +228,7 @@ populate_vendor( struct pci_id_leaf * vend, int fill_device_data )
/* vendor_name may already be set from a previous invocation
* of this function with fill_device_data = 0.
*/
- if (vend->vendor_name != NULL) {
+ if (vend->vendor_name == NULL) {
vend->vendor_name = strdup( & buf[ num_tabs + 6 ] );
}