forked from Imagelibrary/rtems
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:
committed by
Kinsey Moore
parent
40769810ff
commit
5e2ac1584e
@@ -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];
|
||||
|
||||
Reference in New Issue
Block a user