diff options
| author | Toby Chen <chenyanjun912@hotmail.com> | 2019-03-08 06:51:14 -0800 |
|---|---|---|
| committer | Tim Foley <tfoleyNV@users.noreply.github.com> | 2019-03-08 06:51:14 -0800 |
| commit | 74a340506bde3c668b05ad5aa1192cfa89763243 (patch) | |
| tree | 78edc07cb08090739eb76cb951ccbef686e6db9f | |
| parent | f33aee2be9017934140da9fdfb0dcde15568b3a8 (diff) | |
Properly initialize m_modulesBeingImported otherwize it will segfault (#888)
| -rw-r--r-- | source/slang/compiler.h | 2 |
1 files changed, 1 insertions, 1 deletions
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); |
