summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorToby Chen <chenyanjun912@hotmail.com>2019-03-08 06:51:14 -0800
committerTim Foley <tfoleyNV@users.noreply.github.com>2019-03-08 06:51:14 -0800
commit74a340506bde3c668b05ad5aa1192cfa89763243 (patch)
tree78edc07cb08090739eb76cb951ccbef686e6db9f
parentf33aee2be9017934140da9fdfb0dcde15568b3a8 (diff)
Properly initialize m_modulesBeingImported otherwize it will segfault (#888)
-rw-r--r--source/slang/compiler.h2
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);