summaryrefslogtreecommitdiffstats
path: root/tboot/vsprintf.c
diff options
context:
space:
mode:
Diffstat (limited to 'tboot/vsprintf.c')
-rw-r--r--tboot/vsprintf.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/tboot/vsprintf.c b/tboot/vsprintf.c
index a100cc0..cc7d488 100644
--- a/tboot/vsprintf.c
+++ b/tboot/vsprintf.c
@@ -93,7 +93,8 @@ static unsigned long write_pads_to_buffer(char *buf, size_t buf_len,
unsigned long buf_pos, char pad,
size_t pad_len)
{
- for ( unsigned int i = 0; i < pad_len; i++ )
+ unsigned int i;
+ for ( i = 0; i < pad_len; i++ )
buf_pos = write_char_to_buffer(buf, buf_len, buf_pos, pad);
return buf_pos;