Bug #14818: Actually return the PCI vendor name, instead of NULL.
authorDoug Chapman <doug.chapman@hp.com>
Thu, 6 Mar 2008 19:22:17 +0000 (14:22 -0500)
committerAdam Jackson <ajax@redhat.com>
Thu, 6 Mar 2008 19:22:17 +0000 (14:22 -0500)
src/common_device_name.c

index 66c2104..b105187 100644 (file)
@@ -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 ] );
                }