modstruct: struct_calcsize: Fix case of uninitialized var.

store-consts
Paul Sokolovsky 2014-05-20 16:34:05 +03:00
parent 44a949d58c
commit 053765414c
1 changed files with 1 additions and 1 deletions

View File

@ -85,7 +85,7 @@ STATIC mp_obj_t struct_calcsize(mp_obj_t fmt_in) {
char fmt_type = get_fmt_type(&fmt);
machine_uint_t size;
for (size = 0; *fmt; fmt++) {
uint align;
uint align = 1;
machine_uint_t cnt = 1;
if (unichar_isdigit(*fmt)) {
cnt = get_fmt_num(&fmt);