summaryrefslogtreecommitdiffstats
path: root/source
diff options
context:
space:
mode:
authorjsmall-nvidia <jsmall@nvidia.com>2021-06-30 13:44:43 -0400
committerGitHub <noreply@github.com>2021-06-30 13:44:43 -0400
commit5395ef82535c283109b1ea6b89b737c5a39bf147 (patch)
tree32317c2027be3b1456d6d7a7fb8f1e4c7524e2c1 /source
parent9dfaabe0fbcc9ac7314f84bde89c658b276298e3 (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.h2
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.