ソースを参照

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?