diff --git a/src/encode/base64.c b/src/encode/base64.c
index f0d686ae6290b8299da3865c5a7adca7dd12ec78..ebec436882728ec73a5c4f4bb3d8d1573f0d0816 100644
--- a/src/encode/base64.c
+++ b/src/encode/base64.c
@@ -65,7 +65,6 @@ int b64_decode(char *target, size_t tlen, const char *source, size_t slen)
 			return(-1);
 		}
 		if(*i=='=')  { /* pad char */
-			i=(char *)base64alphabet;
 			if(working&0xFF != 0)
 				return(-1);
 			break;