summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--board/toradex/common/board.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/board/toradex/common/board.c b/board/toradex/common/board.c
index dab6e838e8..f9af433e87 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;