From 61f58853aeac90aa55bff4c3da315f724fdc913e Mon Sep 17 00:00:00 2001
From: Kristof Szabados <Kristof.Szabados@ericsson.com>
Date: Mon, 31 Dec 2018 16:55:16 +0100
Subject: [PATCH] why initialize to 0 if they will be overwritten in the next
 line?

Signed-off-by: Kristof Szabados <Kristof.Szabados@ericsson.com>
---
 core/Universal_charstring.cc | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/core/Universal_charstring.cc b/core/Universal_charstring.cc
index 6e8318042..a9b80634b 100644
--- a/core/Universal_charstring.cc
+++ b/core/Universal_charstring.cc
@@ -1613,10 +1613,9 @@ void UNIVERSAL_CHARSTRING::encode_utf16(TTCN_Buffer& buf,
         buf.put_c(isbig ? c : r);
       }
       else if (g || p) { // greater than 0xFFFF it needs surrogates
-        uint32_t univc = 0, temp = 0;
-        univc = g;
+        uint32_t univc = g;
         univc <<= 24;
-        temp = p;
+        uint32_t temp = p;
         temp <<= 16;
         univc |= temp;
         temp = r;
-- 
GitLab