Merge remote-tracking branch 'refs/remotes/tmux-openbsd/master'

* refs/remotes/tmux-openbsd/master:
  Fix uninitialized var for sscanf %n.
This commit is contained in:
tmux update bot
2026-07-16 16:43:22 +00:00

View File

@@ -1,4 +1,4 @@
/* $OpenBSD: layout-custom.c,v 1.37 2026/07/10 13:38:45 nicm Exp $ */
/* $OpenBSD: layout-custom.c,v 1.38 2026/07/16 12:36:58 nicm Exp $ */
/*
* Copyright (c) 2010 Nicholas Marriott <nicholas.marriott@gmail.com>
@@ -177,7 +177,7 @@ layout_parse(struct window *w, const char *layout, char **cause)
struct window_pane *wp;
u_int npanes, ncells, sx = 0, sy = 0;
u_short csum;
int n;
int n = 0;
/* Check validity. */
if (sscanf(layout, "%hx,%n", &csum, &n) != 1 || n != 5) {