소스 검색

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 21 년 전
부모
커밋
e14520f859
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  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));