Hi,

This patch initializes reference_offset before it's used.
This fixes another coverity error.

Thanks,
Cindy
From 5e537848adf7e8250f213792275027f336a390ba Mon Sep 17 00:00:00 2001
From: Cynthia Rempel <cynt...@rtems.org>
Date: Thu, 22 Aug 2013 20:22:10 -0700
Subject: [PATCH 1/1] Initialize reference_offset before using Fixes an
 unecessary coverity error

---
 cpukit/libfs/src/defaults/default_lseek_file.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/cpukit/libfs/src/defaults/default_lseek_file.c b/cpukit/libfs/src/defaults/default_lseek_file.c
index cafc4dc..c37a362 100644
--- a/cpukit/libfs/src/defaults/default_lseek_file.c
+++ b/cpukit/libfs/src/defaults/default_lseek_file.c
@@ -32,7 +32,7 @@ off_t rtems_filesystem_default_lseek_file(
 )
 {
   off_t rv = 0;
-  off_t reference_offset;
+  off_t reference_offset = 0;
   off_t new_offset;
   struct stat st;
 
-- 
1.8.1.2

_______________________________________________
rtems-devel mailing list
rtems-devel@rtems.org
http://www.rtems.org/mailman/listinfo/rtems-devel

Reply via email to