From: Peter Maydell Date: Mon, 20 Dec 2010 21:13:32 +0000 (+0000) Subject: Fix used-uninitialised warning in fmt_rfc2047.c X-Git-Tag: mmh-start~6 X-Git-Url: http://git.marmaro.de/?p=mmh;a=commitdiff_plain;h=a4e085dcc682da556af59d8b2c8a0afe44c6f257 Fix used-uninitialised warning in fmt_rfc2047.c Fix a used-uninitialised warning in fmt_rfc2047.c. I don't think it can actually be used uninitialised, but the code is too complicated for the compiler to realise this. Signed-off-by: Peter Maydell --- diff --git a/sbr/fmt_rfc2047.c b/sbr/fmt_rfc2047.c index 6f208a1..4d3fc29 100644 --- a/sbr/fmt_rfc2047.c +++ b/sbr/fmt_rfc2047.c @@ -236,6 +236,7 @@ decode_rfc2047 (char *str, char *dst, size_t dstlen) } else { /* base64 */ int c1, c2, c3, c4; + c1 = c2 = c3 = c4 = -1; pp = startofmime; while (pp < endofmime) {