From f207f5f7af578ea1b3b0e34bf64c652a2130f572 Mon Sep 17 00:00:00 2001 From: SteveDaulton Date: Sat, 3 Jul 2021 17:09:41 +0100 Subject: [PATCH] Fix uninitialised variables When importing an AUP project, selLow and selHigh may not be defined in the project. If not defined, this causes an error on initialising Nyquist. See: https://forum.audacityteam.org/viewtopic.php?f=48&t=118940 --- src/import/ImportAUP.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/import/ImportAUP.cpp b/src/import/ImportAUP.cpp index 1c471fae6..71915fc66 100644 --- a/src/import/ImportAUP.cpp +++ b/src/import/ImportAUP.cpp @@ -171,8 +171,8 @@ private: field(sel0, double); field(sel1, double); #ifdef EXPERIMENTAL_SPECTRAL_EDITING - field(selLow, double); - field(selHigh, double); + field(selLow, double) = SelectedRegion::UndefinedFrequency; + field(selHigh, double) = SelectedRegion::UndefinedFrequency; #endif field(rate, double); field(snapto, bool);