diff options
| author | Yong He <yonghe@outlook.com> | 2021-01-21 12:21:00 -0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-01-21 12:21:00 -0800 |
| commit | 6c8135fcd6c5ddb86ade74417e93383917d17cb2 (patch) | |
| tree | f6f020371f0b3657b438f298a88bd5fc35ca64c1 /source/core/slang-string.h | |
| parent | 4b978330dd4f5f96d1e4e4397cb3ddf7ff8abb3a (diff) | |
Add `StructuredBuffer` support in `gfx`. (#1666)
Diffstat (limited to 'source/core/slang-string.h')
| -rw-r--r-- | source/core/slang-string.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/core/slang-string.h b/source/core/slang-string.h index 9f6eaafa7..cec4b0a09 100644 --- a/source/core/slang-string.h +++ b/source/core/slang-string.h @@ -72,7 +72,7 @@ namespace Slang explicit UnownedStringSlice(char const* a) : m_begin(a), - m_end(a + strlen(a)) + m_end(a ? a + strlen(a) : nullptr) {} UnownedStringSlice(char const* b, char const* e) : m_begin(b) |
