aboutsummaryrefslogtreecommitdiff
path: root/x86.c
diff options
context:
space:
mode:
Diffstat (limited to 'x86.c')
-rw-r--r--x86.c4
1 files changed, 2 insertions, 2 deletions
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);
}