Explorar o código

add an assert to catch a weird case.

(Logical change 1.180)


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@603 fd59a12c-fef9-0310-b244-a6a79926bd2f
Steven Dake %!s(int64=21) %!d(string=hai) anos
pai
achega
e14520f859
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      exec/totempg.c

+ 1 - 0
exec/totempg.c

@@ -280,6 +280,7 @@ static void totempg_deliver_fn (
 			msg_count * sizeof (unsigned short);
 		
 		memcpy (header, iovec[0].iov_base, datasize);
+		assert(iovec);
 		data = iovec[0].iov_base;
 
 		msg_lens = (unsigned short *) (header + sizeof (struct totempg_mcast));