diff options
author | Guy Harris <guy@alum.mit.edu> | 1999-05-10 20:02:57 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 1999-05-10 20:02:57 +0000 |
commit | 36609cd91ec983bd677730280a37315a50b8dbe0 (patch) | |
tree | 628612d521b6bbf9036d586043fb119e6d045dc5 /packet-nbns.c | |
parent | 8f90c3c9147ef39d52eb01eaa2673f64f6467985 (diff) | |
download | wireshark-36609cd91ec983bd677730280a37315a50b8dbe0.tar.gz wireshark-36609cd91ec983bd677730280a37315a50b8dbe0.tar.bz2 wireshark-36609cd91ec983bd677730280a37315a50b8dbe0.zip |
EGCS 1.1's dataflow analysis (and probably that of other versions of
GCC) isn't sophisticated enough to figure out that "nbss_tree" isn't
used if "tree" is null (or doesn't trust it not to change out from under
it), so we have to initialize "nbss_tree" to NULL to squelch complaints
about it being used but uninitialized.
svn path=/trunk/; revision=264
Diffstat (limited to 'packet-nbns.c')
-rw-r--r-- | packet-nbns.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/packet-nbns.c b/packet-nbns.c index 9f2d7ce49f..f37c082aee 100644 --- a/packet-nbns.c +++ b/packet-nbns.c @@ -4,7 +4,7 @@ * Gilbert Ramirez <gram@verdict.uthscsa.edu> * Much stuff added by Guy Harris <guy@netapp.com> * - * $Id: packet-nbns.c,v 1.16 1999/05/09 04:16:35 sharpe Exp $ + * $Id: packet-nbns.c,v 1.17 1999/05/10 20:02:57 guy Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs <gerald@zing.org> @@ -1160,7 +1160,7 @@ static const value_string error_codes[] = { static int dissect_nbss_packet(const u_char *pd, int offset, frame_data *fd, proto_tree *tree, int max_data) { - proto_tree *nbss_tree; + proto_tree *nbss_tree = NULL; proto_item *ti; proto_tree *field_tree; proto_item *tf; |