diff options
author | Doug Chapman <doug.chapman@hp.com> | 2008-03-06 14:22:17 -0500 |
---|---|---|
committer | Adam Jackson <ajax@redhat.com> | 2008-03-06 14:22:17 -0500 |
commit | 0ac748d0da1361075efa48a6238f2328d24ba1a8 (patch) | |
tree | c5555cf2ac038f41414a39890c9d07eb48ec7949 | |
parent | adc46f65d7a097ea0e8427a2496586a420c99d55 (diff) | |
download | libpciaccess-0ac748d0da1361075efa48a6238f2328d24ba1a8.tar.gz libpciaccess-0ac748d0da1361075efa48a6238f2328d24ba1a8.tar.bz2 libpciaccess-0ac748d0da1361075efa48a6238f2328d24ba1a8.zip |
Bug #14818: Actually return the PCI vendor name, instead of NULL.
-rw-r--r-- | src/common_device_name.c | 2 |
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 ] ); } |