From 8e879f80a757bc9e47dcd597e4ba7777f21728e8 Mon Sep 17 00:00:00 2001 From: Alexey Pelykh Date: Thu, 31 Jan 2013 22:07:56 +0200 Subject: [PATCH] Fix crash if no avian.boostrap is specified (oops) --- src/machine.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/machine.cpp b/src/machine.cpp index a0cd3184ce..dce3bfe185 100644 --- a/src/machine.cpp +++ b/src/machine.cpp @@ -3011,7 +3011,7 @@ Machine::Machine(System* system, Heap* heap, Finder* bootFinder, const char* bootstrapProperty = findProperty(this, BOOTSTRAP_PROPERTY); const char* bootstrapPropertyDup = bootstrapProperty ? strdup(bootstrapProperty) : 0; const char* bootstrapPropertyEnd = bootstrapProperty + (bootstrapProperty ? strlen(bootstrapProperty) : 0); - char* codeLibraryName = (char*)bootstrapProperty; + char* codeLibraryName = (char*)bootstrapPropertyDup; char* codeLibraryNameEnd = 0; if (codeLibraryName && (codeLibraryNameEnd = strchr(codeLibraryName, system->pathSeparator()))) *codeLibraryNameEnd = 0;