Skip to content

Commit d60fde5

Browse files
authored
Merge pull request #4649 from WalterBright/exception-trusted
remove unsafe use of .ptr in std.exception
2 parents 7fde2c6 + 5f2178c commit d60fde5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

std/exception.d

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -396,7 +396,7 @@ private void bailOut(E : Throwable = Exception)(string file, size_t line, in cha
396396
{
397397
static if (is(typeof(new E(string.init, string.init, size_t.init))))
398398
{
399-
throw new E(msg.ptr ? msg.idup : "Enforcement failed", file, line);
399+
throw new E(msg ? msg.idup : "Enforcement failed", file, line);
400400
}
401401
else static if (is(typeof(new E(string.init, size_t.init))))
402402
{

0 commit comments

Comments
 (0)