Commit: 0cac149a4bdfd96350e34bb8bcd9baff6df9f143
Parent: eb40539c7e5a3acba685f6b22776ff464a316a94
Author: Bastien Nocera <hadess@hadess.net>
Committer: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Date: 2025-08-11 15:44:46
Tree: 47a793c4d106f82c589ce937ec100171c464d51a

mesh: Fix 'buf’ may be used uninitialized warning ../dist-unpack/bluez-5.83/tools/mesh/agent.c: In function ‘response_decimal’: ../dist-unpack/bluez-5.83/tools/mesh/agent.c:94:9: warning: ‘buf’ may be used uninitialized [-Wmaybe-uninitialized] 94 | bt_put_be32(atoi(input), buf); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../dist-unpack/bluez-5.83/tools/mesh/agent.c:20: ../dist-unpack/bluez-5.83/lib/bluetooth/bluetooth.h:342:20: note: by argument 2 of type ‘const void *’ to ‘bt_put_be32’ declared here 342 | static inline void bt_put_be32(uint32_t val, const void *ptr) | ^~~~~~~~~~~ ../dist-unpack/bluez-5.83/tools/mesh/agent.c:88:17: note: ‘buf’ declared here 88 | uint8_t buf[DECIMAL_OOB_LEN]; | ^~~

Diffstat

M tools/mesh/agent.c | 2 +-

1 files changed, 1 insertions(+), 1 deletions(-)

View Full Diff | Patch