diff options
author | Nicholas Marriott <nicholas.marriott@gmail.com> | 2009-01-29 20:13:12 +0000 |
---|---|---|
committer | Nicholas Marriott <nicholas.marriott@gmail.com> | 2009-01-29 20:13:12 +0000 |
commit | 871f57cb63ca864e98084ccb434418d7cfd40f92 (patch) | |
tree | 0ec7b99efc12833ae0444e67f0005f4009d5a3f2 | |
parent | b4076865bb12654fec93141810c0c192ebf6c557 (diff) | |
download | rtmux-871f57cb63ca864e98084ccb434418d7cfd40f92.tar.gz rtmux-871f57cb63ca864e98084ccb434418d7cfd40f92.tar.bz2 rtmux-871f57cb63ca864e98084ccb434418d7cfd40f92.zip |
Ugh. Another inner loop variable reuse bug.
-rw-r--r-- | server.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -1,4 +1,4 @@ -/* $Id: server.c,v 1.115 2009-01-28 19:52:21 nicm Exp $ */ +/* $Id: server.c,v 1.116 2009-01-29 20:13:12 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net> @@ -337,12 +337,12 @@ server_shutdown(void) { struct session *s; struct client *c; - u_int i; + u_int i, j; for (i = 0; i < ARRAY_LENGTH(&sessions); i++) { s = ARRAY_ITEM(&sessions, i); - for (i = 0; i < ARRAY_LENGTH(&clients); i++) { - c = ARRAY_ITEM(&clients, i); + for (j = 0; j < ARRAY_LENGTH(&clients); j++) { + c = ARRAY_ITEM(&clients, j); if (c != NULL && c->session == s) { s = NULL; break; |