SIGN IN SIGN UP

fix: Return NULL on enum-value snprintf failure in GCS extra-data handler

handle_extra_data_enum() returns a `const nbgl_contentValueExt_t *`
but the failure path of its snprintf() guard returned `false`. C lets
the implicit bool→pointer conversion compile (0 → NULL), so the
behavior was accidentally correct, but the literal is misleading and
masks the intent of the early-return.

Return NULL explicitly to match the pointer return type.

(cherry picked from commit 38215d0b2875ff5b36dd915de9633759fe4cd1fa)
C
Charles-Edouard de la Vergne committed
e1fa4cee42879dc79065d020707099d1d89d58e1
Parent: 0135029
Committed by Alexandre Paillier <alexandre.paillier@ledger.fr> on 8/25/2026, 3:03:58 PM