This is an automated email from the ASF dual-hosted git repository. xiaoxiang781216 pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/nuttx.git
commit e48b3d3ae51d6675fa2900253152eb2ded1a35c1 Author: Bowen Wang <[email protected]> AuthorDate: Tue Nov 25 10:01:57 2025 +0800 drivers/rptun: initialize shmbase and shmlen Some compilers report them as maybe used uninitialized. Signed-off-by: Bowen Wang <[email protected]> --- drivers/rptun/rptun.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/rptun/rptun.c b/drivers/rptun/rptun.c index 07fd4af9c9c..968649011fd 100644 --- a/drivers/rptun/rptun.c +++ b/drivers/rptun/rptun.c @@ -603,9 +603,9 @@ static int rptun_create_device(FAR struct rptun_priv_s *priv, FAR struct virtio_device *vdev; FAR struct metal_list *node; FAR char *rsc = rproc->rsc_table; - FAR char *shmbase; + FAR char *shmbase = NULL; unsigned int role; - size_t shmlen; + size_t shmlen = 0; size_t off; int ret = OK;
