From 3cf302a71d50114c44cedbe0114e513063b93302 Mon Sep 17 00:00:00 2001 From: daurnimator Date: Wed, 1 Apr 2020 01:25:25 +1100 Subject: Tidy up some mem.spanZ use-sites now that null is accepted --- lib/std/debug.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/std/debug.zig') diff --git a/lib/std/debug.zig b/lib/std/debug.zig index 35c13809f7..11d808a17d 100644 --- a/lib/std/debug.zig +++ b/lib/std/debug.zig @@ -1254,7 +1254,7 @@ pub const DebugInfo = struct { if (context.address >= seg_start and context.address < seg_end) { // Android libc uses NULL instead of an empty string to mark the // main program - context.name = if (info.dlpi_name) |dlpi_name| mem.spanZ(dlpi_name) else ""; + context.name = mem.spanZ(info.dlpi_name) orelse ""; context.base_address = info.dlpi_addr; // Stop the iteration return error.Found; -- cgit v1.2.3