aboutsummaryrefslogtreecommitdiff
path: root/modules/devices.c
diff options
context:
space:
mode:
Diffstat (limited to 'modules/devices.c')
-rw-r--r--modules/devices.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/devices.c b/modules/devices.c
index 90a7b89b..85e5c932 100644
--- a/modules/devices.c
+++ b/modules/devices.c
@@ -372,7 +372,7 @@ gchar *get_motherboard(void)
if (board_vendor) {
/* attempt to shorten */
tmp = vendor_get_shortest_name(board_vendor);
- if (tmp) {
+ if (tmp && tmp != board_vendor) {
g_free(board_vendor);
board_vendor = g_strdup(tmp);
}
@@ -384,7 +384,7 @@ gchar *get_motherboard(void)
if (product_vendor) {
/* attempt to shorten */
tmp = vendor_get_shortest_name(product_vendor);
- if (tmp) {
+ if (tmp && tmp != product_vendor) {
g_free(product_vendor);
product_vendor = g_strdup(tmp);
}