Revision: 2817
          http://tmux.svn.sourceforge.net/tmux/?rev=2817&view=rev
Author:   tcunha
Date:     2012-05-30 13:49:05 +0000 (Wed, 30 May 2012)
Log Message:
-----------
Sync OpenBSD patchset 1129:

Use RB_FOREACH_SAFE as winlinks are being removed, from Chris Johnsen.

Modified Paths:
--------------
    trunk/cmd-kill-window.c

Modified: trunk/cmd-kill-window.c
===================================================================
--- trunk/cmd-kill-window.c     2012-05-30 13:48:16 UTC (rev 2816)
+++ trunk/cmd-kill-window.c     2012-05-30 13:49:05 UTC (rev 2817)
@@ -40,14 +40,14 @@
 cmd_kill_window_exec(struct cmd *self, struct cmd_ctx *ctx)
 {
        struct args     *args = self->args;
-       struct winlink  *wl, *wl2;
+       struct winlink  *wl, *wl2, *wl3;
        struct session  *s;
 
        if ((wl = cmd_find_window(ctx, args_get(args, 't'), &s)) == NULL)
                return (-1);
 
        if (args_has(args, 'a')) {
-               RB_FOREACH(wl2, winlinks, &s->windows) {
+               RB_FOREACH_SAFE(wl2, winlinks, &s->windows, wl3) {
                        if (wl != wl2)
                                server_kill_window(wl2->window);
                }

This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.


------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
tmux-cvs mailing list
tmux-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/tmux-cvs

Reply via email to