aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBart Polot <bart@net.in.tum.de>2012-09-27 12:12:05 +0000
committerBart Polot <bart@net.in.tum.de>2012-09-27 12:12:05 +0000
commit6114cf9fdae76768d5bf4c4a73c8d23366a36403 (patch)
treeb741fe476d0d0fe4de40ec6b0f371c0a34235557 /src
parent8f85b3b3410fb1f8683fa630f3e649d0aa8f210d (diff)
downloadgnunet-6114cf9fdae76768d5bf4c4a73c8d23366a36403.tar.gz
gnunet-6114cf9fdae76768d5bf4c4a73c8d23366a36403.zip
- fix uninitialized local variable use
Diffstat (limited to 'src')
-rw-r--r--src/mesh/gnunet-service-mesh.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/mesh/gnunet-service-mesh.c b/src/mesh/gnunet-service-mesh.c
index 7a04302b0..887507cd1 100644
--- a/src/mesh/gnunet-service-mesh.c
+++ b/src/mesh/gnunet-service-mesh.c
@@ -4624,13 +4624,15 @@ queue_destroy (struct MeshPeerQueue *queue, int clear_cls)
4624 unsigned int j2; 4624 unsigned int j2;
4625 unsigned int j3; 4625 unsigned int j3;
4626 4626
4627 for (j = i; j < cinfo->send_buffer_n - 1; j++) 4627 for (j = i, j2 = 0, j3 = 0; j < cinfo->send_buffer_n - 1; j++)
4628 { 4628 {
4629 j2 = (cinfo->send_buffer_start + j) % max; 4629 j2 = (cinfo->send_buffer_start + j) % max;
4630 j3 = (cinfo->send_buffer_start + j + 1) % max; 4630 j3 = (cinfo->send_buffer_start + j + 1) % max;
4631 cinfo->send_buffer[j2] = cinfo->send_buffer[j3]; 4631 cinfo->send_buffer[j2] = cinfo->send_buffer[j3];
4632 } 4632 }
4633
4633 cinfo->send_buffer[j3] = NULL; 4634 cinfo->send_buffer[j3] = NULL;
4635
4634 cinfo->send_buffer_n--; 4636 cinfo->send_buffer_n--;
4635 } 4637 }
4636 } 4638 }