Procházet zdrojové kódy

Update src/ua_securechannel.c

GCC version 4.9.x complains about variable finalLength (compiler setting -Wmaybe-uninitialized)
Martin Lang před 6 roky
rodič
revize
e229a3514a
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  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)