cpukit/libblock/src/bdbuf.c: Uninitialized variable warning

On some BSP builds, the variable q was reported as used before
it was initialized. This is a false positive. The variable is now
initialized to NULL to prevent this.
This commit is contained in:
Joel Sherrill
2025-07-17 16:33:08 -05:00
committed by Kinsey Moore
parent 40769810ff
commit 5e2ac1584e

View File

@@ -340,7 +340,7 @@ rtems_bdbuf_avl_insert(rtems_bdbuf_buffer** root,
rtems_blkdev_bnum block = node->block;
rtems_bdbuf_buffer* p = *root;
rtems_bdbuf_buffer* q;
rtems_bdbuf_buffer* q = NULL;
rtems_bdbuf_buffer* p1;
rtems_bdbuf_buffer* p2;
rtems_bdbuf_buffer* buf_stack[RTEMS_BDBUF_AVL_MAX_HEIGHT];