From 74a340506bde3c668b05ad5aa1192cfa89763243 Mon Sep 17 00:00:00 2001 From: Toby Chen Date: Fri, 8 Mar 2019 06:51:14 -0800 Subject: Properly initialize m_modulesBeingImported otherwize it will segfault (#888) --- source/slang/compiler.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source') diff --git a/source/slang/compiler.h b/source/slang/compiler.h index 27728bc84..f456e2be2 100644 --- a/source/slang/compiler.h +++ b/source/slang/compiler.h @@ -710,7 +710,7 @@ namespace Slang }; // Any modules currently being imported will be listed here - ModuleBeingImportedRAII* m_modulesBeingImported; + ModuleBeingImportedRAII* m_modulesBeingImported = nullptr; /// Is the given module in the middle of being imported? bool isBeingImported(Module* module); -- cgit v1.2.3