]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
fix lxc_mainloop_del_handler
authorClement Calmels <clement.calmels@fr.ibm.com>
Wed, 13 Jan 2010 17:51:16 +0000 (18:51 +0100)
committerDaniel Lezcano <dlezcano@fr.ibm.com>
Wed, 13 Jan 2010 17:51:16 +0000 (18:51 +0100)
Fix bad index.

Signed-off-by: Clement Calmels <clement.calmels@fr.ibm.com>
Signed-off-by: Daniel Lezcano <dlezcano@fr.ibm.com>
src/lxc/mainloop.c

index 97673bb93a9e6e76272630ba5417cecd990eaa7a..fcae73995dcc3796687b0157ccb318b0a7a75089 100644 (file)
@@ -139,7 +139,7 @@ int lxc_mainloop_del_handler(struct lxc_epoll_descr *descr, int fd)
                for (j = 0; j < descr->nfds; j++) {
                        if (i == j)
                                continue;
-                       ev[idx] = descr->ev[idx];
+                       ev[idx] = descr->ev[j];
                        idx++;
                }