summaryrefslogtreecommitdiffstats
path: root/window-tree.c
diff options
context:
space:
mode:
authorThomas Adam <thomas@xteddy.org>2019-10-15 10:01:28 +0100
committerThomas Adam <thomas@xteddy.org>2019-10-15 10:01:28 +0100
commitfb7ce5b5d509db244111e130224f366ced28b228 (patch)
tree7359b965c7b1bd25e19256dba1c3318dca6359c4 /window-tree.c
parenteb57cbcc296b10d8d9ea41930ab402717c800f9c (diff)
parent9fd62efcf0392cda0ddd1b7836e98da08d0a6f9f (diff)
Merge branch 'obsd-master'
Diffstat (limited to 'window-tree.c')
-rw-r--r--window-tree.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/window-tree.c b/window-tree.c
index 9909036c..4f4cbaab 100644
--- a/window-tree.c
+++ b/window-tree.c
@@ -191,7 +191,7 @@ window_tree_cmp_session(const void *a0, const void *b0)
const struct session *const *b = b0;
const struct session *sa = *a;
const struct session *sb = *b;
- int result;
+ int result = 0;
switch (window_tree_sort->field) {
case WINDOW_TREE_BY_INDEX:
@@ -226,7 +226,7 @@ window_tree_cmp_window(const void *a0, const void *b0)
const struct winlink *wlb = *b;
struct window *wa = wla->window;
struct window *wb = wlb->window;
- int result;
+ int result = 0;
switch (window_tree_sort->field) {
case WINDOW_TREE_BY_INDEX: