diff libfdcore/peers.c @ 908:ed611e15f744

Fix a few warnings, thank you Thomas again
author Sebastien Decugis <sdecugis@freediameter.net>
date Sat, 19 Jan 2013 16:35:48 +0100
parents 1d2721778c7a
children a2cf598607e6 cce5d4bace82
line wrap: on
line diff
--- a/libfdcore/peers.c	Wed Dec 19 23:55:22 2012 +0100
+++ b/libfdcore/peers.c	Sat Jan 19 16:35:48 2013 +0100
@@ -542,7 +542,7 @@
 	
 	/* Send the new connection event to the PSM */
 	CHECK_MALLOC_DO( ev_data = malloc(sizeof(struct cnx_incoming)), { ret = ENOMEM; goto out; } );
-	memset(ev_data, 0, sizeof(ev_data));
+	memset(ev_data, 0, sizeof(*ev_data));
 	
 	ev_data->cer = msg;
 	ev_data->cnx = *cnx;
"Welcome to our mercurial repository"