Commit d665fd6d97 for openssl.org

commit d665fd6d970e9ca82fc74982e288446bc2c61c5e
Author: Timo Keller <tkeller@linux.ibm.com>
Date:   Wed Aug 19 09:32:12 2026 +0200

    Fix compilation errors with Clang on s390x

    Signed-off-by: Timo Keller <tkeller@linux.ibm.com>
    Reviewed-by: Mounir Idrassi <mounir.idrassi@idrix.fr>
    Reviewed-by: Tomas Mraz <tomas@openssl.foundation>
    Merge-date: Tue Sep 29 16:47:10 2026
    Merged-from: https://github.com/openssl/openssl/pull/31929

diff --git a/crypto/modes/xts128gb.c b/crypto/modes/xts128gb.c
index 3ad94e107a..5017847356 100644
--- a/crypto/modes/xts128gb.c
+++ b/crypto/modes/xts128gb.c
@@ -97,7 +97,7 @@ int ossl_crypto_xts128gb_encrypt(const XTS128_CONTEXT *ctx,
             tweak.u[0] = lo;
             tweak.u[1] = hi;
         } else {
-            uint8_t carry, res;
+            uint8_t carry, res = 0;
             carry = 0;
             for (i = 0; i < 16; ++i) {
                 res = (tweak.c[i] << 7) & 0x80;
@@ -155,7 +155,7 @@ int ossl_crypto_xts128gb_encrypt(const XTS128_CONTEXT *ctx,
             tweak1.u[0] = lo;
             tweak1.u[1] = hi;
         } else {
-            uint8_t carry, res;
+            uint8_t carry, res = 0;
             carry = 0;
             for (i = 0; i < 16; ++i) {
                 res = (tweak.c[i] << 7) & 0x80;