From cb08378dcb19876395ae1b07cb242778d6818727 Mon Sep 17 00:00:00 2001 From: Burt P Date: Tue, 5 Jun 2018 20:36:15 -0500 Subject: gpu_util: fix when vendor is found, but short name is empty Signed-off-by: Burt P --- hardinfo/gpu_util.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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() -- cgit v1.2.3