From 1e8d76870140c2ab76ed3cebb9e5980bcfc77856 Mon Sep 17 00:00:00 2001 From: Matthias Kolja Miehl Date: Sun, 21 Aug 2016 06:39:14 +0200 Subject: [PATCH] sys/base64: fix variableScope --- sys/base64/base64.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/base64/base64.c b/sys/base64/base64.c index 849ba8ca21..0bafec5c81 100644 --- a/sys/base64/base64.c +++ b/sys/base64/base64.c @@ -83,9 +83,9 @@ int base64_encode(unsigned char *data_in, size_t data_in_size, \ unsigned char nNum = 0; int nLst = 0; int njump = 0; - unsigned char tmpval; for (int i = 0; i < (int)(data_in_size); ++i) { + unsigned char tmpval; njump++; tmpval = *(data_in + i);