ソースを参照

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. */