mirror of
https://git.proxmox.com/git/fwupd
synced 2025-07-25 10:22:34 +00:00
vbe: Fix a crash when dumping firmware
PVS: The null pointer is passed into 'g_byte_array_append' function.
This commit is contained in:
parent
c62e7a6bab
commit
07b368d6b1
@ -388,7 +388,7 @@ fu_vbe_simple_device_upload(FuDevice *device, FuProgress *progress, GError **err
|
||||
{
|
||||
FuVbeSimpleDevice *self = FU_VBE_SIMPLE_DEVICE(device);
|
||||
gssize rc;
|
||||
g_autoptr(GByteArray) buf = NULL;
|
||||
g_autoptr(GByteArray) buf = g_byte_array_new();
|
||||
g_autoptr(GPtrArray) chunks = NULL;
|
||||
|
||||
/* notify UI */
|
||||
|
Loading…
Reference in New Issue
Block a user