Commit 76364b2d0d2a4cbd30e348da2a4330a2137ee86e

Mark Jamsek 2022-07-02T03:59:37

unconditionally set x/y pointers in view_get_split() suggested by and ok op@

1
2
3
4
5
6
7
8
9
10
11
12
13
14
diff --git a/tog/tog.c b/tog/tog.c
index 3d04465..a0eb688 100644
--- a/tog/tog.c
+++ b/tog/tog.c
@@ -2885,6 +2885,9 @@ view_get_split(struct tog_view *view, int *y, int *x)
 {
 	char *mode;
 
+	*x = 0;
+	*y = 0;
+
 	mode = getenv("TOG_VIEW_SPLIT_MODE");
 
 	if (!mode || mode[0] != 'h') {