Wireshark-commits: [Wireshark-commits] master ca57399: Get rid of duplicate code.

From: Wireshark code review <code-review-do-not-reply@xxxxxxxxxxxxx>
Date: Tue, 26 Apr 2016 00:42:47 +0000 (UTC)
URL: https://code.wireshark.org/review/gitweb?p=wireshark.git;a=commit;h=ca57399db89b69a9ae8517f3e0ef530855c354bd
Submitter: Guy Harris (guy@xxxxxxxxxxxx)
Changed: branch: master
Repository: wireshark

Commits:

ca57399 by Guy Harris (guy@xxxxxxxxxxxx):

    Get rid of duplicate code.
    
    Use CHECK_FOR_NULL_TREE() while we're at it, to make it more like other
    routines.
    
    Change-Id: I2cbdf9f043583fd0c9858e94ae1134173a68c875
    Reviewed-on: https://code.wireshark.org/review/15116
    Reviewed-by: Guy Harris <guy@xxxxxxxxxxxx>
    

Actions performed:

    from  7b2d8a1   Always call test_length(), even if the tree is null.
    adds  ca57399   Get rid of duplicate code.


Summary of changes:
 epan/proto.c |   11 ++---------
 1 file changed, 2 insertions(+), 9 deletions(-)