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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user