Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
initialize the buffer before use, even if the part actually used was already initiali...
[simgrid.git] / testsuite / gras / trp_tcp_client.c
index 580eb2d..5eb465f 100644 (file)
@@ -20,6 +20,9 @@ int main(int argc,char *argv[]) {
   char data_send[256];
   char data_recv[256];
 
+  memset(data_send, 0, sizeof(data_send));
+  memset(data_recv, 0, sizeof(data_recv));
+
   gras_init_defaultlog(&argc,argv,"trp.thresh=debug");
 
   fprintf(stderr,"===[CLIENT]=== Contact the server\n");