[rtems commit] libtests/block05: Avoid uninitialized variable
Sebastian Huber
sebh at rtems.org
Tue Aug 7 05:41:07 UTC 2018
Module: rtems
Branch: master
Commit: 678277132b84c5e8da5e2c935a4202097698a50d
Changeset: http://git.rtems.org/rtems/commit/?id=678277132b84c5e8da5e2c935a4202097698a50d
Author: Sebastian Huber <sebastian.huber at embedded-brains.de>
Date: Sat Aug 4 14:24:05 2018 +0200
libtests/block05: Avoid uninitialized variable
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 6aafb0e..9bc56af 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);
More information about the vc
mailing list