diff options
| author | Burt P <pburt0@gmail.com> | 2018-10-22 22:47:51 -0500 | 
|---|---|---|
| committer | Leandro A. F. Pereira <leandro@hardinfo.org> | 2018-11-04 15:02:12 -0800 | 
| commit | fc407592e96beb1de05a000a9ac41c48958f53bd (patch) | |
| tree | 45d44cd5406b61e7a11e2b6f5163c53562183248 | |
| parent | ab2a236a6e269154d130e1a26f09de6f0888a019 (diff) | |
devices: also ignore duplicate version
Signed-off-by: Burt P <pburt0@gmail.com>
| -rw-r--r-- | modules/devices.c | 7 | 
1 files changed, 7 insertions, 0 deletions
diff --git a/modules/devices.c b/modules/devices.c index 85e5c932..4439c058 100644 --- a/modules/devices.c +++ b/modules/devices.c @@ -404,6 +404,13 @@ gchar *get_motherboard(void)              product_name = NULL;      } +    if (board_version && product_version && +        strcmp(board_version, product_version) == 0) { +            /* ignore duplicate version */ +            g_free(product_version); +            product_version = NULL; +    } +      if (board_name) b += 1;      if (board_vendor) b += 2;      if (board_version) b += 4;  | 
