summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--usr.bin/tmux/session.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/usr.bin/tmux/session.c b/usr.bin/tmux/session.c
index fa0e6fa60d1..9e7c827a717 100644
--- a/usr.bin/tmux/session.c
+++ b/usr.bin/tmux/session.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: session.c,v 1.23 2010/12/20 00:43:24 nicm Exp $ */
+/* $OpenBSD: session.c,v 1.24 2010/12/20 01:28:18 nicm Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
@@ -190,7 +190,6 @@ session_next_session(struct session *s)
if (ARRAY_LENGTH(&sessions) == 0 || session_index(s, &i) != 0)
return (NULL);
- i = 0;
do {
if (i == ARRAY_LENGTH(&sessions) - 1)
i = 0;