Ethereal-cvs: [Ethereal-cvs] cvs commit: ethereal print.c

Note: This archive is from the project's previous web site, ethereal.com. This list is no longer active.

From: Guy Harris <guy@xxxxxxxxxxxxxxxxxxx>
Date: Sun, 31 Mar 2002 20:00:51 -0600 (CST)
guy         2002/03/31 20:00:51 CST

  Modified files:
    .                    print.c 
  Log:
  Start assigning ett_ values at 0, rather than 1; get rid of the reserved
  ETT_NONE entry.
  
  Initialize the "tree_type" field of a "field_info" structure to -1,
  meaning "this has not been given a subtree".  Add checks before using
  that field that it's in range.  That way, you have to create a subtree
  before putting protocol tree items under another item.
  
  We allocate the "tree_is_expanded" array when we've registered all
  dissectors; there's no need to allocate it while we're registering
  dissectors and, in fact, doing so means we leak memory (the memory for
  the version we allocated while registering dissectors).
  
  Revision  Changes    Path
  1.44      +2 -1      ethereal/print.c