diff options
Diffstat (limited to 'board/toradex')
-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; |