Skip to content

Fix segmentation fault when .conf file is missing

Whenever ghostwriter.conf is missing (or the last used exporter within
is empty), the app will crash with a segmentation fault due to accessing
an uninitialed pointer to the current HTML exporter in appsettings.cpp.
This commit ensures that the pointer is initialized to null before being
checked for whether obtaining an exporter was successful.
BUG: 465799

(cherry picked from commit f82070ac7916b36bb0bfd84a5c0e96cb084a6e28)
Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>

Without this, we really have an unusable 24.08.x release. https://bugs.gentoo.org/942928

Merge request reports

Loading