1
0
mirror of https://github.com/openbsd/src.git synced 2026-06-18 07:13:36 +02:00

Check error result correctly (*cause not cause), pointed out by jsg.

This commit is contained in:
nicm
2026-05-27 07:01:36 +00:00
parent 6861f874fc
commit 44ca0aff17
+2 -2
View File
@@ -1,4 +1,4 @@
/* $OpenBSD: window.c,v 1.322 2026/05/24 08:40:43 nicm Exp $ */
/* $OpenBSD: window.c,v 1.323 2026/05/27 07:01:36 nicm Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicholas.marriott@gmail.com>
@@ -2091,7 +2091,7 @@ window_pane_tiled_geometry(struct window *w, struct window_pane *wp,
} else if (args_has(args, 'p')) {
size = args_strtonum_and_expand(args, 'p', 0, 100, item,
cause);
if (cause == NULL)
if (*cause == NULL)
size = curval * size / 100;
}
if (*cause != NULL)