[PATCH 06/21] libtests/block05: Avoid uninitialized variable

Sebastian Huber sebastian.huber at embedded-brains.de
Mon Aug 6 07:14:38 UTC 2018


Update #3358.
---
 testsuites/libtests/block05/init.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/testsuites/libtests/block05/init.c b/testsuites/libtests/block05/init.c
index 6aafb0e5a6..9bc56af5d5 100644
--- a/testsuites/libtests/block05/init.c
+++ b/testsuites/libtests/block05/init.c
@@ -412,7 +412,7 @@ static void disk_register(
   ASSERT_SC(sc);
 
   fd = open(dev, O_RDWR);
-  rtems_test_assert(rv >= 0);
+  rtems_test_assert(fd >= 0);
 
   rv = rtems_disk_fd_get_disk_device(fd, dd_ptr);
   rtems_test_assert(rv == 0);
-- 
2.13.7




More information about the devel mailing list