mirror of
https://github.com/libretro/Lakka-LibreELEC.git
synced 2024-12-15 09:49:46 +00:00
28 lines
875 B
Diff
28 lines
875 B
Diff
From 5cd389f1fe1fe095cdf555194df875ee3ab445cf Mon Sep 17 00:00:00 2001
|
|
From: MilhouseVH <milhouseVH.github@nmacleod.com>
|
|
Date: Sun, 26 Nov 2017 22:21:15 +0000
|
|
Subject: [PATCH] uninitialized variables build error
|
|
|
|
---
|
|
src/liblzma/lzma/lzma_encoder.c | 4 ++--
|
|
1 file changed, 2 insertions(+), 2 deletions(-)
|
|
|
|
diff --git a/src/liblzma/lzma/lzma_encoder.c b/src/liblzma/lzma/lzma_encoder.c
|
|
index ba9ce69..08e8c87 100644
|
|
--- a/src/liblzma/lzma/lzma_encoder.c
|
|
+++ b/src/liblzma/lzma/lzma_encoder.c
|
|
@@ -359,8 +359,8 @@ lzma_lzma_encode(lzma_lzma1_encoder *restrict coder, lzma_mf *restrict mf,
|
|
// - UINT32_MAX: not a match but a literal
|
|
// Value ranges for len:
|
|
// - [MATCH_LEN_MIN, MATCH_LEN_MAX]
|
|
- uint32_t len;
|
|
- uint32_t back;
|
|
+ uint32_t len = 0;
|
|
+ uint32_t back = 0;
|
|
|
|
if (coder->fast_mode)
|
|
lzma_lzma_optimum_fast(coder, mf, &back, &len);
|
|
--
|
|
2.14.1
|
|
|