diff options
author | Burt P <pburt0@gmail.com> | 2018-05-29 17:38:04 -0500 |
---|---|---|
committer | Leandro A. F. Pereira <leandro@hardinfo.org> | 2018-06-02 18:52:31 -0700 |
commit | 41b2c29a6c516ea6027c7ca6b14351d51cdf7643 (patch) | |
tree | 58e348ecbfdd0d60a2180765fbad10f77ce03133 /hardinfo/hardinfo.c | |
parent | 65dc5d0c8b3fc8adc16efdc5250b26b182297b27 (diff) |
vendor.c: add some data fields and cleanup
* Initialize strings to empty in `read_from_vendor_ids()`
* vendor.ids format reader clears all fields at `name`
* Added `name_short`, and `url_support` fields
* `vendor_cleanup()` function that frees `vendor_list`
* `vendor_match()` returns the whole `Vendor` data structure
Signed-off-by: Burt P <pburt0@gmail.com>
Diffstat (limited to 'hardinfo/hardinfo.c')
-rw-r--r-- | hardinfo/hardinfo.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/hardinfo/hardinfo.c b/hardinfo/hardinfo.c index c47e7bf7..e1783315 100644 --- a/hardinfo/hardinfo.c +++ b/hardinfo/hardinfo.c @@ -156,6 +156,7 @@ int main(int argc, char **argv) } moreinfo_shutdown(); + vendor_cleanup(); DEBUG("finished"); return exit_code; |