From 6c8135fcd6c5ddb86ade74417e93383917d17cb2 Mon Sep 17 00:00:00 2001 From: Yong He Date: Thu, 21 Jan 2021 12:21:00 -0800 Subject: Add `StructuredBuffer` support in `gfx`. (#1666) --- source/core/slang-string.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source/core') 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) -- cgit v1.2.3