소스 검색

fixed one pointer warning

Stasik0 11 년 전
부모
커밋
cc90c10613
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      tool/opcua_basictypes.c

+ 1 - 1
tool/opcua_basictypes.c

@@ -860,7 +860,7 @@ Int32 UA_Variant_decode(char const * src, Int32 *pos, UA_Variant *dst) {
 		dst->arrayLength = 1;
 	}
 	// allocate place for arrayLength pointers to any type
-	retval |= UA_memalloc(&(dst->data),dst->arrayLength * sizeof(void*));
+	retval |= UA_memalloc(dst->data,dst->arrayLength * sizeof(void*));
 
 	for (i=0;i<dst->arrayLength;i++) {
 		// TODO: this is crazy, how to work with variants with variable size?