]> git.dujemihanovic.xyz Git - u-boot.git/commit
expo: Set the initial next_id to 1
authorSimon Glass <sjg@chromium.org>
Mon, 14 Oct 2024 22:31:56 +0000 (16:31 -0600)
committerSimon Glass <sjg@chromium.org>
Fri, 18 Oct 2024 20:10:22 +0000 (14:10 -0600)
commit89f4f33c447e4c17e43372e3e91525187c43f54e
treee2797ddda23d3208ac0ce04001bdd01da4c62123
parent54eca1d39bc980a7e99af53a5b32443d5774b1a0
expo: Set the initial next_id to 1

If expo_set_dynamic_start() is never called, the first scene created
will have an ID of 0, which is invalid. Correct this by setting a
default value.

Add a test to check this.

Signed-off-by: Simon Glass <sjg@chromium.org>
boot/expo.c
test/boot/expo.c