Ethereal-cvs: [Ethereal-cvs] cvs commit: ethereal/epan proto.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: Mon, 7 May 2001 16:07:00 -0500 (CDT)
guy         2001/05/07 16:07:00 CDT

  Modified files:
    epan                 proto.c 
  Log:
  If "proto_item_set_len()" is passed a null pointer as its first
  argument, have it just return; this allows dissectors that don't
  explicitly check for a null protocol-tree argument to pass the
  protocol-tree argument to "proto_tree_add_XXX()" routines - which means
  they'll get a null pointer back if the protocol-tree argument is null
  because we're not constructing a protocol tree - and then later use
  "proto_item_set_len()" without having to check for a null
  protocol-tree-item pointer.
  
  Revision  Changes    Path
  1.26      +6 -2      ethereal/epan/proto.c