Browse Source

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

Stasik0 11 years ago
parent
commit
16a1317eb5
1 changed files with 2 additions and 2 deletions
  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) {
 UA_Int32 UA_NodeId_decodeBinary(UA_ByteString const * src, UA_Int32* pos, UA_NodeId *dst) {
 	int retval = UA_SUCCESS;
 	int retval = UA_SUCCESS;
 	// temporary variables to overcome decoder's non-endian-saveness for datatypes
 	// 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));
 	retval |= UA_Byte_decodeBinary(src,pos,&(dst->encodingByte));
 	switch (dst->encodingByte & UA_NODEIDTYPE_MASK) {
 	switch (dst->encodingByte & UA_NODEIDTYPE_MASK) {