diff options
author | Michael Cahill <michael.cahill@wiredtiger.com> | 2012-06-02 00:02:23 +1000 |
---|---|---|
committer | Michael Cahill <michael.cahill@wiredtiger.com> | 2012-06-02 00:02:23 +1000 |
commit | 439b5ef263a014069871f3df6f0896c74713d5b0 (patch) | |
tree | bcc86e74b722b07a98aac66fe48ad2987b3b1c57 /src/meta/meta_track.c | |
parent | 51ec453e72f9742786d405b026a720813df10e6b (diff) | |
download | mongo-439b5ef263a014069871f3df6f0896c74713d5b0.tar.gz |
meta/meta_track.c:54:39: error: 'sub_off' may be used uninitialized in this function
Diffstat (limited to 'src/meta/meta_track.c')
-rw-r--r-- | src/meta/meta_track.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/meta/meta_track.c b/src/meta/meta_track.c index 0956bc863bd..b7d5c77bc35 100644 --- a/src/meta/meta_track.c +++ b/src/meta/meta_track.c @@ -38,9 +38,7 @@ __meta_track_next(WT_SESSION_IMPL *session, WT_META_TRACK **trkp) session->meta_track_next = session->meta_track; offset = WT_PTRDIFF(session->meta_track_next, session->meta_track); - if (session->meta_track_sub != NULL) - sub_off = - WT_PTRDIFF(session->meta_track_sub, session->meta_track); + sub_off = WT_PTRDIFF(session->meta_track_sub, session->meta_track); if (offset == session->meta_track_alloc) { WT_RET(__wt_realloc(session, &session->meta_track_alloc, WT_MAX(2 * session->meta_track_alloc, |