Ignore:
Timestamp:
Aug 23, 2013, 7:43:53 AM (6 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
4.11, master
Children:
f4804efa
Parents:
dbdfc78
git-author:
Sebastian Huber <sebastian.huber@…> (08/23/13 07:43:53)
git-committer:
Sebastian Huber <sebastian.huber@…> (08/23/13 08:06:34)
Message:

Filesystem: Avoid usage of uninitialized variable

This is a cosmetic fix. There was no bug.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpukit/libfs/src/defaults/default_lseek_file.c

    rdbdfc78 r630365b  
    3434  off_t rv = 0;
    3535  off_t reference_offset;
    36   off_t new_offset;
    3736  struct stat st;
    3837
     
    5453      break;
    5554  }
    56   new_offset = reference_offset + offset;
    5755
    5856  if ( rv == 0 ) {
     57    off_t new_offset = reference_offset + offset;
     58
    5959    if (
    6060      (offset >= 0 && new_offset >= reference_offset)
Note: See TracChangeset for help on using the changeset viewer.