Browse Source

fixed coverity warning message (ua_list_removeLast, null pointer derefencing)

FlorianPalm 10 years ago
parent
commit
cc7aedef68
1 changed files with 0 additions and 1 deletions
  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;
 		}