patch for startup crash without a temporary directory
Posted: Tue Jun 17, 2014 7:33 am
Would post on Bugzilla, but requesting an account there is too much of a hassle. I won't bother.
Here is a patch for 2.0.5 fixing a crash on startup when there is no temporary directory configured (LP #766918, RH #954818):
I don't know if this is the prettiest way to fix it, but it has the advantage of working.
Here is a patch for 2.0.5 fixing a crash on startup when there is no temporary directory configured (LP #766918, RH #954818):
Code: Select all
--- src/AudacityApp.cpp 2013-10-19 09:31:48.000000000 +0200
+++ src/AudacityApp.cpp 2014-06-16 21:12:37.408119425 +0200
@@ -1208,6 +1208,8 @@
mLocale = NULL;
InitLang( lang );
+ mImporter = new Importer;
+
// Init DirManager, which initializes the temp directory
// If this fails, we must exit the program.
@@ -1292,8 +1294,6 @@
GStreamerStartup();
#endif
- mImporter = new Importer;
-
//
// Auto-recovery
//