Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
remove warning
authordegomme <degomme@debian.localdomain>
Tue, 11 Jun 2013 00:03:22 +0000 (02:03 +0200)
committerdegomme <degomme@debian.localdomain>
Tue, 11 Jun 2013 00:03:22 +0000 (02:03 +0200)
examples/msg/bittorrent/peer.c

index 337db69..fc3e27f 100644 (file)
@@ -658,7 +658,7 @@ void update_choked_peers(peer_t peer)
             xbt_dict_size(peer->active_peers));
   //update the current round
   peer->round = (peer->round + 1) % 3;
-  char *key, *key_choked;
+  char *key, *key_choked=NULL;
   connection_t peer_choosed = NULL;
   connection_t peer_choked = NULL;
   //remove a peer from the list