Permalink
Browse files

gpu_util: fix when vendor is found, but short name is empty

Signed-off-by: Burt P <pburt0@gmail.com>
  • Loading branch information...
bp0 authored and lpereira committed Jun 6, 2018
1 parent 506f4b7 commit cb08378dcb19876395ae1b07cb242778d6818727
Showing with 1 addition and 1 deletion.
  1. +1 −1 hardinfo/gpu_util.c
View
@@ -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()

0 comments on commit cb08378

Please sign in to comment.