瀏覽代碼

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