From 562b2be9f2d331d75a357601df12351865e5d841 Mon Sep 17 00:00:00 2001 From: Joseph Hunkeler Date: Wed, 26 Apr 2023 01:02:38 -0400 Subject: bugfix: remove null pointer check because it will always evaluate as true with static character string --- x86.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'x86.c') diff --git a/x86.c b/x86.c index e7b2f7e..e26271e 100644 --- a/x86.c +++ b/x86.c @@ -45,12 +45,12 @@ char *get_sys_product() { rstrip(vendor); } #if defined(__linux__) - if (!vendor || !strlen(vendor)) { + if (!strlen(vendor)) { strcpy(vendor, get_sys_dmi_product()); rstrip(vendor); } #elif defined(__APPLE__) - if (!vendor || !strlen(vendor)) { + if (!strlen(vendor)) { strcpy(vendor, get_sys_product_darwin()); rstrip(vendor); } -- cgit