diff options
author | Keith Bostic <keith@wiredtiger.com> | 2013-11-16 10:29:15 -0500 |
---|---|---|
committer | Keith Bostic <keith@wiredtiger.com> | 2013-11-16 10:29:15 -0500 |
commit | 409b3e5ccd290e389bcd9881ef92af08729a9ffa (patch) | |
tree | 60b3a9103509da45dd890895d5216e751df33861 | |
parent | d9060a6effb0ae8257f6e36de5c02471a032e2cd (diff) | |
download | mongo-409b3e5ccd290e389bcd9881ef92af08729a9ffa.tar.gz |
bt_huffman.c:310:22: error: 'lineno' may be used uninitialized in this
function [-Werror=maybe-uninitialized]
-rw-r--r-- | src/btree/bt_huffman.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/btree/bt_huffman.c b/src/btree/bt_huffman.c index b71804e06b4..138086f3708 100644 --- a/src/btree/bt_huffman.c +++ b/src/btree/bt_huffman.c @@ -302,15 +302,15 @@ __wt_huffman_read(WT_SESSION_IMPL *session, WT_CONFIG_ITEM *ip, tp->frequency = (uint32_t)frequency; } -err: if (fp != NULL) + *entriesp = lineno - 1; + *tablep = table; + + if (0) { +err: __wt_free(session, table); + } + if (fp != NULL) (void)fclose(fp); __wt_free(session, file); - - if (ret == 0) { - *entriesp = lineno - 1; - *tablep = table; - } else - __wt_free(session, table); return (ret); } |