diff --git a/layout-custom.c b/layout-custom.c index 9df0448ff..c58e92028 100644 --- a/layout-custom.c +++ b/layout-custom.c @@ -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 @@ -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) {