diff options
| author | Burt P <pburt0@gmail.com> | 2019-08-17 22:40:04 -0500 | 
|---|---|---|
| committer | Leandro A. F. Pereira <leandro@hardinfo.org> | 2019-08-18 23:55:39 +0200 | 
| commit | f6b11e254c38a94b307df4f027a51030a1fcbfa7 (patch) | |
| tree | aee1181adb8aeb5f1de1832d04071dd9e0e33998 /modules/devices | |
| parent | af53964c160c26e54c90ee78f9fe16ab714a7c20 (diff) | |
firmware: fix duplicate guids
Fixes
https://github.com/lpereira/hardinfo/issues/450
Signed-off-by: Burt P <pburt0@gmail.com>
Diffstat (limited to 'modules/devices')
| -rw-r--r-- | modules/devices/firmware.c | 2 | 
1 files changed, 2 insertions, 0 deletions
| diff --git a/modules/devices/firmware.c b/modules/devices/firmware.c index e5f11391..71d1baa7 100644 --- a/modules/devices/firmware.c +++ b/modules/devices/firmware.c @@ -152,6 +152,7 @@ gchar *fwupdmgr_get_devices_info() {      struct InfoGroup *this_group = NULL;      gboolean has_vendor_field = FALSE;      const Vendor *gv = NULL; +    int gc = 0;      fail_no_fwupdmgr = FALSE;      spawned = g_spawn_command_line_sync("fwupdmgr get-devices", @@ -199,6 +200,7 @@ gchar *fwupdmgr_get_devices_info() {                              *ar = 0;                          info_group_add_field(this_group,                              info_field(find_translation(p), g_strdup(col+1), +                            .tag = g_strdup_printf("guid%d", gc++),                              .free_value_on_flatten = TRUE) );                      } else if (SEQ(p, "Flags")) {                          gchar **flags = g_strsplit(col+1, "|", 0); | 
