Skip to content

Commit 5f2178c

Browse files
committed
remove unsafe use of .ptr in std.exception
1 parent c027225 commit 5f2178c

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)