Explorar o código

resolved 2 warning, otherwise gcc did not want to let me compile...

Stasik0 %!s(int64=11) %!d(string=hai) anos
pai
achega
16a1317eb5
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      src/ua_basictypes.c

+ 2 - 2
src/ua_basictypes.c

@@ -725,8 +725,8 @@ UA_TYPE_END_XXCODEBINARY
 UA_Int32 UA_NodeId_decodeBinary(UA_ByteString const * src, UA_Int32* pos, UA_NodeId *dst) {
 	int retval = UA_SUCCESS;
 	// temporary variables to overcome decoder's non-endian-saveness for datatypes
-	UA_Byte   dstByte;
-	UA_UInt16 dstUInt16;
+	UA_Byte   dstByte = 0;
+	UA_UInt16 dstUInt16 = 0;
 
 	retval |= UA_Byte_decodeBinary(src,pos,&(dst->encodingByte));
 	switch (dst->encodingByte & UA_NODEIDTYPE_MASK) {