Update of /cvsroot/tmux/tmux
In directory sfp-cvsdas-2.v30.ch3.sourceforge.com:/tmp/cvs-serv23910

Modified Files:
        server-fn.c 
Log Message:
Sync OpenBSD patchset 769:

Skip NULL entries in the sessions list when choosing the next session,
from Simon Olofsson.


Index: server-fn.c
===================================================================
RCS file: /cvsroot/tmux/tmux/server-fn.c,v
retrieving revision 1.111
retrieving revision 1.112
diff -u -d -r1.111 -r1.112
--- server-fn.c 9 Oct 2010 14:29:32 -0000       1.111
+++ server-fn.c 9 Oct 2010 14:31:14 -0000       1.112
@@ -368,7 +368,7 @@
        s_out = NULL;
        for (i = 0; i < ARRAY_LENGTH(&sessions); i++) {
                s_loop = ARRAY_ITEM(&sessions, i);
-               if (s_loop == s)
+               if (s_loop == NULL || s_loop == s)
                        continue;
                if (s_out == NULL ||
                    timercmp(&s_loop->activity_time, &s_out->activity_time, <))


------------------------------------------------------------------------------
Beautiful is writing same markup. Internet Explorer 9 supports
standards for HTML5, CSS3, SVG 1.1,  ECMAScript5, and DOM L2 & L3.
Spend less time writing and  rewriting code and more time creating great
experiences on the web. Be a part of the beta today.
http://p.sf.net/sfu/beautyoftheweb
_______________________________________________
tmux-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tmux-cvs

Reply via email to