diff options
author | Burt P <pburt0@gmail.com> | 2018-06-05 20:36:15 -0500 |
---|---|---|
committer | Leandro A. F. Pereira <leandro@hardinfo.org> | 2018-06-08 07:21:48 -0700 |
commit | cb08378dcb19876395ae1b07cb242778d6818727 (patch) | |
tree | 91b2a9d5e0fe94ce75d32c91f0ed6ba4688fc71b /hardinfo | |
parent | 506f4b70085caecff52191824b8b4c81d8b0f6f2 (diff) |
gpu_util: fix when vendor is found, but short name is empty
Signed-off-by: Burt P <pburt0@gmail.com>
Diffstat (limited to 'hardinfo')
-rw-r--r-- | hardinfo/gpu_util.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/hardinfo/gpu_util.c b/hardinfo/gpu_util.c index dd1845a0..fb37c0cb 100644 --- a/hardinfo/gpu_util.c +++ b/hardinfo/gpu_util.c @@ -151,7 +151,7 @@ static void make_nice_name(gpud *s) { /* try and a get a "short name" for the vendor */ const Vendor *v = vendor_match(vendor_str, NULL); - if (v && v->name_short) + if (v && v->name_short && *v->name_short != 0) vendor_str = v->name_short; /* These two former special cases are currently handled by the vendor_match() |