From d6bfd3501126ce334278d3239dd94d0e2c58cc38 Mon Sep 17 00:00:00 2001 From: Paul Gardiner Date: Wed, 7 Feb 2018 11:50:19 +0000 Subject: Fix uninitialised variable warning in fz_peek_byte --- include/mupdf/fitz/stream.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/mupdf/fitz/stream.h b/include/mupdf/fitz/stream.h index 33606cc8..b0571e04 100644 --- a/include/mupdf/fitz/stream.h +++ b/include/mupdf/fitz/stream.h @@ -395,7 +395,7 @@ static inline int fz_read_byte(fz_context *ctx, fz_stream *stm) */ static inline int fz_peek_byte(fz_context *ctx, fz_stream *stm) { - int c; + int c = EOF; if (stm->rp != stm->wp) return *stm->rp; -- cgit v1.2.3