From 911b216afff933609f2be3f7936d766ac7918d0e Mon Sep 17 00:00:00 2001 From: Dominik Riebeling Date: Tue, 8 Mar 2022 21:56:00 +0100 Subject: [PATCH] rbutil: Properly initialize sansa / ipod bootloader buffer. Fixes a crash on MacOS. Change-Id: Ibb64a37266182c4ddfee32b2ac47b9d8f25a78e5 --- utils/rbutilqt/base/bootloaderinstallipod.cpp | 1 + utils/rbutilqt/base/bootloaderinstallsansa.cpp | 1 + 2 files changed, 2 insertions(+) diff --git a/utils/rbutilqt/base/bootloaderinstallipod.cpp b/utils/rbutilqt/base/bootloaderinstallipod.cpp index d08cc22339..faab3d10f5 100644 --- a/utils/rbutilqt/base/bootloaderinstallipod.cpp +++ b/utils/rbutilqt/base/bootloaderinstallipod.cpp @@ -28,6 +28,7 @@ BootloaderInstallIpod::BootloaderInstallIpod(QObject *parent) : BootloaderInstallBase(parent) { + ipod.sectorbuf = nullptr; } diff --git a/utils/rbutilqt/base/bootloaderinstallsansa.cpp b/utils/rbutilqt/base/bootloaderinstallsansa.cpp index 568bb82afa..06f3ef6680 100644 --- a/utils/rbutilqt/base/bootloaderinstallsansa.cpp +++ b/utils/rbutilqt/base/bootloaderinstallsansa.cpp @@ -27,6 +27,7 @@ BootloaderInstallSansa::BootloaderInstallSansa(QObject *parent) : BootloaderInstallBase(parent) { + sansa.sectorbuf = nullptr; }