diff --git a/src/compile.cpp b/src/compile.cpp index c31644438e..44e2d0f2a4 100644 --- a/src/compile.cpp +++ b/src/compile.cpp @@ -3405,7 +3405,7 @@ logCompile(MyThread* t, const void* code, unsigned size, const char* class_, if (not open) { open = true; const char* path = findProperty(t, "avian.jit.log"); - if (name) { + if (path) { log = fopen(path, "wb"); } else if (DebugCompile) { log = stderr;