You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@openoffice.apache.org by ji...@apache.org on 2020/12/04 16:33:35 UTC

[openoffice] branch trunk updated: silence uninitialized warning

This is an automated email from the ASF dual-hosted git repository.

jim pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/openoffice.git


The following commit(s) were added to refs/heads/trunk by this push:
     new 6ffb02e  silence uninitialized warning
6ffb02e is described below

commit 6ffb02e9df8c0b1dc427d1722230d21c8ebc14ed
Author: Jim Jagielski <ji...@gmail.com>
AuthorDate: Fri Dec 4 09:28:45 2020 -0500

    silence uninitialized warning
    
    (cherry picked from commit f4cb3a436aec3679c54f9569ae436eb162fcfac8)
---
 main/automation/source/simplecm/packethandler.cxx | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/main/automation/source/simplecm/packethandler.cxx b/main/automation/source/simplecm/packethandler.cxx
index 6de9dd5..ab0a335 100644
--- a/main/automation/source/simplecm/packethandler.cxx
+++ b/main/automation/source/simplecm/packethandler.cxx
@@ -115,7 +115,7 @@ comm_BOOL PacketHandler::ReceiveData( void* &pData, comm_UINT32 &nLen )
 			bWasError |= nLenCheck != CalcCheckByte( nBytes );
 
 
-			comm_UINT16 nHeaderBytes;
+			comm_UINT16 nHeaderBytes = 0;
 			READ_SOCKET_LEN( &nHeaderBytes, 2, nReadSoFar );
 			nHeaderBytes = NETWORD( nHeaderBytes );
 			// reicht der Header �ber das Ende hinaus?