Преглед на файлове

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?