aboutsummaryrefslogtreecommitdiffstats
path: root/packet-nbns.c
diff options
context:
space:
mode:
authorguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>1999-05-10 20:02:57 +0000
committerguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>1999-05-10 20:02:57 +0000
commit0ccff28889855c3cc6c72a048216efa908aa6c6f (patch)
tree628612d521b6bbf9036d586043fb119e6d045dc5 /packet-nbns.c
parentbd41e18c150aca8403b0bfe6155755b40ede0270 (diff)
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. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@264 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'packet-nbns.c')
-rw-r--r--packet-nbns.c4
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;