Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Added a memset in function client() to avoid and "uninitialized" warning.
authorcasanova <casanova@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Sat, 22 Apr 2006 00:06:09 +0000 (00:06 +0000)
committercasanova <casanova@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Sat, 22 Apr 2006 00:06:09 +0000 (00:06 +0000)
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@2174 48e7efb5-ca39-0410-a469-dd3cf9ba447f

examples/gras/rpc/rpc.c

index efb7b8d..8eadcfd 100644 (file)
@@ -63,11 +63,11 @@ static void exception_catching(void) {
 
 
 int client(int argc,char *argv[]) {
-  xbt_ex_t e; 
+  xbt_ex_t e;
   gras_socket_t toserver=NULL; /* peer */
   gras_socket_t toforwarder=NULL; /* peer */
 
-  
+  memset(&e,0,sizeof(xbt_ex_t));
 
   int ping, pong, i;
   volatile int gotit=0;