소스 검색

fixing gcc4.9 warning, relates to #382

Stasik0 9 년 전
부모
커밋
d836467279
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  1. 1 0
      src/ua_types_encoding_binary.c

+ 1 - 0
src/ua_types_encoding_binary.c

@@ -741,6 +741,7 @@ UA_StatusCode UA_Variant_encodeBinary(UA_Variant const *src, UA_ByteString *dst,
     }
 
     UA_NodeId typeId;
+    UA_NodeId_init(&typeId);
     if(isBuiltin)
         /* Do an extra lookup. E.g. UA_ServerState is encoded as UA_UINT32. The
            typeindex points to the true type. */