[gmime] slight optimization
- From: Jeffrey Stedfast <fejj src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gmime] slight optimization
- Date: Tue, 20 Dec 2011 15:25:02 +0000 (UTC)
commit fb5bc63e5741bf4a243a1f8fe72965a9b7339ee5
Author: Jeffrey Stedfast <jeff xamarin com>
Date: Tue Dec 20 10:24:49 2011 -0500
slight optimization
gmime/gmime-encodings.c | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
---
diff --git a/gmime/gmime-encodings.c b/gmime/gmime-encodings.c
index f052035..72016f1 100644
--- a/gmime/gmime-encodings.c
+++ b/gmime/gmime-encodings.c
@@ -526,7 +526,6 @@ g_mime_encoding_base64_decode_step (const unsigned char *inbuf, size_t inlen, un
*outptr++ = saved >> 16;
*outptr++ = saved >> 8;
*outptr++ = saved;
- saved = 0;
n = 0;
if (npad > 0) {
@@ -559,7 +558,7 @@ g_mime_encoding_base64_decode_step (const unsigned char *inbuf, size_t inlen, un
}
*state = (npad << 8) | n;
- *save = saved;
+ *save = n ? saved : 0;
return (outptr - outbuf);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]