diff options
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 f42e78ac4..6b9a73bcb 100644 --- a/source/core/slang-string.h +++ b/source/core/slang-string.h @@ -279,7 +279,7 @@ namespace Slang { public: UnownedTerminatedStringSlice(char const* b) - : UnownedStringSlice(b, b + strlen(b)) + : UnownedStringSlice(b, b + (b?strlen(b):0)) {} }; |
