Skip to content

Commit

Permalink
wacom-usb: Fix a Coverity-spotted uninitialized pointer read
Browse files Browse the repository at this point in the history
  • Loading branch information
hughsie committed May 22, 2024
1 parent 012f640 commit ca3031c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/wacom-usb/fu-wac-module-sub-cpu.c
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ fu_wac_module_sub_cpu_create_chunk(GPtrArray *srec_records, guint32 *record_num,
guint32 base_addr = 0;
guint32 expect_addr = 0;
g_autoptr(GByteArray) data = g_byte_array_new();
g_autoptr(GBytes) blob;
g_autoptr(GBytes) blob = NULL;

for (; *record_num < srec_records->len; *record_num += 1) {
FuSrecFirmwareRecord *rcd = g_ptr_array_index(srec_records, *record_num);
Expand Down

0 comments on commit ca3031c

Please sign in to comment.