diff options
-rw-r--r-- | board/toradex/common/board.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/board/toradex/common/board.c b/board/toradex/common/board.c index dab6e838e86..f9af433e873 100644 --- a/board/toradex/common/board.c +++ b/board/toradex/common/board.c @@ -748,6 +748,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; |