diff options
author | Marcel Ziswiler <marcel.ziswiler@toradex.com> | 2013-10-03 17:26:49 +0200 |
---|---|---|
committer | Marcel Ziswiler <marcel.ziswiler@toradex.com> | 2013-10-03 17:26:49 +0200 |
commit | d59d402d75b0b782d69394866b4a9c39e49ddb65 (patch) | |
tree | d33bb9cc0646cd1747d80146be003cf516c64d8c /board | |
parent | 63437b3ecfef5acf322aa827fd6430c43d444269 (diff) |
colibri_vf50: fix further issue in HCD conversion
Fix possible uninitialised array member issue in serial number to
hexadecimal coded decimal conversion routine.
Diffstat (limited to 'board')
-rw-r--r-- | board/toradex/colibri_vf50/colibri_vf50.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/board/toradex/colibri_vf50/colibri_vf50.c b/board/toradex/colibri_vf50/colibri_vf50.c index 5043929d84..599d4091a6 100644 --- a/board/toradex/colibri_vf50/colibri_vf50.c +++ b/board/toradex/colibri_vf50/colibri_vf50.c @@ -511,6 +511,9 @@ void get_board_serial(struct tag_serialnr *serialnr) array[i--] = serial % 10; serial /= 10; } + while (i >= 0) { + array[i--] = 0; + } serial = array[0]; for (i = 1; i < 8; i++) { serial *= 16; |