From 3068ae06a88269072affc21e9c6e2cb62246905c Mon Sep 17 00:00:00 2001 From: nicm Date: Sun, 26 Jul 2026 09:20:54 +0000 Subject: [PATCH] Also set ntitles to 0 when creating screen in the first place. --- screen.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/screen.c b/screen.c index 35f26bfa6..2533beb5c 100644 --- a/screen.c +++ b/screen.c @@ -1,4 +1,4 @@ -/* $OpenBSD: screen.c,v 1.106 2026/07/26 09:17:30 nicm Exp $ */ +/* $OpenBSD: screen.c,v 1.107 2026/07/26 09:20:54 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott @@ -82,6 +82,7 @@ screen_init(struct screen *s, u_int sx, u_int sy, u_int hlimit) s->title = xstrdup(""); s->titles = NULL; + s->ntitles = 0; s->path = NULL; s->cstyle = SCREEN_CURSOR_DEFAULT;