[rtems commit] fsclose01: Fix uninitialized variable warning

Sebastian Huber sebh at rtems.org
Fri Oct 12 12:45:57 UTC 2018


Module:    rtems
Branch:    master
Commit:    47b32a01a44de1c782b8bd6f32e21ca6212595de
Changeset: http://git.rtems.org/rtems/commit/?id=47b32a01a44de1c782b8bd6f32e21ca6212595de

Author:    Sebastian Huber <sebastian.huber at embedded-brains.de>
Date:      Fri Oct 12 14:45:24 2018 +0200

fsclose01: Fix uninitialized variable warning

---

 testsuites/fstests/fsclose01/init.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/testsuites/fstests/fsclose01/init.c b/testsuites/fstests/fsclose01/init.c
index c8f63c2..b9b8d0c 100644
--- a/testsuites/fstests/fsclose01/init.c
+++ b/testsuites/fstests/fsclose01/init.c
@@ -379,7 +379,7 @@ static void worker_task(rtems_task_argument arg)
         rtems_test_assert(rv == 0);
         break;
       case ACTION_LSEEK:
-        off = lseek(ctx->fd, off, SEEK_SET);
+        off = lseek(ctx->fd, 0, SEEK_SET);
         rtems_test_assert(off == 0);
         break;
       case ACTION_READ:




More information about the vc mailing list