diff options
author | Paul Sokolovsky <pfalcon@users.sourceforge.net> | 2014-05-20 16:34:05 +0300 |
---|---|---|
committer | Paul Sokolovsky <pfalcon@users.sourceforge.net> | 2014-05-20 16:34:05 +0300 |
commit | 053765414c9d3345a628ff11145639506ae90288 (patch) | |
tree | 7f379270c6f123a97e76dd3649068f65175521d2 /py/modstruct.c | |
parent | 44a949d58c883174206fc958c1fa4860e3985bd8 (diff) |
modstruct: struct_calcsize: Fix case of uninitialized var.
Diffstat (limited to 'py/modstruct.c')
-rw-r--r-- | py/modstruct.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/py/modstruct.c b/py/modstruct.c index 95a282e2e..19cf9cfd6 100644 --- a/py/modstruct.c +++ b/py/modstruct.c @@ -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); |