소스 검색

Update src/ua_securechannel.c

GCC version 4.9.x complains about variable finalLength (compiler setting -Wmaybe-uninitialized)
Martin Lang 6 년 전
부모
커밋
e229a3514a
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      src/ua_securechannel.c

+ 1 - 1
src/ua_securechannel.c

@@ -526,7 +526,7 @@ UA_SecureChannel_sendAsymmetricOPNMessage(UA_SecureChannel *channel, UA_UInt32 r
 
     /* The total message length is known here which is why we */
     /* encode the headers at this step and not earlier. */
-    size_t finalLength;
+    size_t finalLength = 0;
     retval = prependHeadersAsym(channel, buf.data, buf_end, total_length,
                                 securityHeaderLength, requestId, &finalLength);
     if(retval != UA_STATUSCODE_GOOD)