소스 검색

fixed coverity warning message (ua_list_removeLast, null pointer derefencing)

FlorianPalm 10 년 전
부모
커밋
cc7aedef68
1개의 변경된 파일0개의 추가작업 그리고 1개의 파일을 삭제
  1. 0 1
      src/util/ua_list.c

+ 0 - 1
src/util/ua_list.c

@@ -119,7 +119,6 @@ UA_Int32 UA_list_removeLast(UA_list_List* list, UA_list_PayloadVisitor visitor){
 		list->size--;
 		if(list->size == 1){
 			list->first = temp;
-			list->first->next = UA_NULL;
 		}else if(list->size==0){
 			list->first = UA_NULL;
 		}