[PATCH] psx13: Fix use of uninitialized variable warning
Sebastian Huber
sebastian.huber at embedded-brains.de
Fri Sep 22 12:40:41 UTC 2023
---
testsuites/psxtests/psx13/test.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/testsuites/psxtests/psx13/test.c b/testsuites/psxtests/psx13/test.c
index 0754dbcf30..951953ae98 100644
--- a/testsuites/psxtests/psx13/test.c
+++ b/testsuites/psxtests/psx13/test.c
@@ -639,6 +639,8 @@ static void FutimensTest( void )
/* EBADF test case */
/* Case: Pass an invalid file descriptor */
+ _Timespec_Set_to_zero( &time[0] );
+ _Timespec_Set_to_zero( &time[1] );
rv = futimens( -1, time );
rtems_test_assert( rv == -1 );
rtems_test_assert( errno == EBADF );
--
2.35.3
More information about the devel
mailing list