szn

Bug 153 — cmd/cmd.zig — src_pane declared undefined in cmdJoinPane

153. cmd/cmd.zig — src_pane declared undefined in cmdJoinPane

File: src/cmd/cmd.zig:326 Severity: LOW Status: ✅ FIXED — initialized src_pane to null and handled non-matching case safely.

var src_pane: *@import("../window.zig").Pane = undefined;

src_pane is initialized to undefined. If the control flow doesn’t assign it before use (e.g., src_arg is null and session.windows.items.len > 1 but all windows equal dst_win), the if (src_pane == dst_pane) check at line 354 reads undefined. Currently safe because the for loop always finds a different window, but fragile.