[gimp/metadata-browser] metadata: Delete dead assignment and move variable to local block
- From: Roman Joost <romanofski src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp/metadata-browser] metadata: Delete dead assignment and move variable to local block
- Date: Fri, 2 Dec 2011 02:10:01 +0000 (UTC)
commit a1457405d0e0bbea520d990a3544d77a36f760e9
Author: Mukund Sivaraman <muks banu com>
Date: Thu Oct 6 19:24:56 2011 +0530
metadata: Delete dead assignment and move variable to local block
plug-ins/metadata/base64.c | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/plug-ins/metadata/base64.c b/plug-ins/metadata/base64.c
index c527bcd..c008664 100644
--- a/plug-ins/metadata/base64.c
+++ b/plug-ins/metadata/base64.c
@@ -100,15 +100,16 @@ base64_decode (const gchar *src_b64,
gint32 decoded;
gssize i;
gint n;
- gint bits;
g_return_val_if_fail (src_b64 != NULL, -1);
g_return_val_if_fail (dest != NULL, -1);
decoded = 0;
n = 0;
- bits = 0;
+
for (i = 0; (src_size != 0) && (i + 3 <= dest_size); src_b64++, src_size--)
{
+ gint bits;
+
bits = base64_6bits[(int) *src_b64 & 0xff];
if (bits < 0)
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]