summaryrefslogtreecommitdiffstats
path: root/source
diff options
context:
space:
mode:
authorYong He <yonghe@outlook.com>2021-01-21 12:21:00 -0800
committerGitHub <noreply@github.com>2021-01-21 12:21:00 -0800
commit6c8135fcd6c5ddb86ade74417e93383917d17cb2 (patch)
treef6f020371f0b3657b438f298a88bd5fc35ca64c1 /source
parent4b978330dd4f5f96d1e4e4397cb3ddf7ff8abb3a (diff)
Add `StructuredBuffer` support in `gfx`. (#1666)
Diffstat (limited to 'source')
-rw-r--r--source/core/slang-string.h2
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)