diff options
| author | jsmall-nvidia <jsmall@nvidia.com> | 2021-06-30 13:44:43 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-06-30 13:44:43 -0400 |
| commit | 5395ef82535c283109b1ea6b89b737c5a39bf147 (patch) | |
| tree | 32317c2027be3b1456d6d7a7fb8f1e4c7524e2c1 /source | |
| parent | 9dfaabe0fbcc9ac7314f84bde89c658b276298e3 (diff) | |
Fix uninitialized access identified by Valgrind (#1898)
* #include an absolute path didn't work - because paths were taken to always be relative.
* Removes read of uniitialized data identified via valgrind runs.
Co-authored-by: Theresa Foley <tfoleyNV@users.noreply.github.com>
Diffstat (limited to 'source')
| -rw-r--r-- | source/slang/slang-ir-restructure.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/slang/slang-ir-restructure.h b/source/slang/slang-ir-restructure.h index 6ec15f6d7..b7a0569d5 100644 --- a/source/slang/slang-ir-restructure.h +++ b/source/slang/slang-ir-restructure.h @@ -222,7 +222,7 @@ namespace Slang /// after the `switch`. /// /// The default case must also be present in `cases`. - Case* defaultCase; + Case* defaultCase = nullptr; }; /// Container for all of the regions in a function. |
