From 7b97d519b3441a74c9214981b75ef5336bee87fa Mon Sep 17 00:00:00 2001 From: Ben Fiedler Date: Mon, 6 Sep 2021 14:53:42 +0200 Subject: [PATCH] river: Fix errdefer in floatFilterAdd --- river/command/filter.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/river/command/filter.zig b/river/command/filter.zig index f8f6143..6d6ac35 100644 --- a/river/command/filter.zig +++ b/river/command/filter.zig @@ -50,7 +50,7 @@ pub fn floatFilterAdd( const key = args[2]; const gop = try map.getOrPut(util.gpa, key); if (gop.found_existing) return; - errdefer assert(map.remove(args[1])); + errdefer assert(map.remove(key)); gop.key_ptr.* = try std.mem.dupe(util.gpa, u8, key); }