Wireshark-commits: [Wireshark-commits] master d73400a: Minor optimization to packet-frame.c
From: Wireshark code review <code-review-do-not-reply@xxxxxxxxxxxxx>
Date: Sun, 11 May 2014 23:13:55 +0000 (UTC)
URL: https://code.wireshark.org/review/gitweb?p=wireshark.git;a=commit;h=d73400a607ce9ae96cada2f042bc2086eaccef98
Submitter: Michael Mann (mmann78@xxxxxxxxxxxx)
Changed: branch: master
Repository: wireshark

Commits:

d73400a by Evan Huus (eapache@xxxxxxxxx):

    Minor optimization to packet-frame.c
    
    When printing the protocol list item (which happens for every packet when using
    tshark -T) the resulting string is almost guaranteed to be longer than the
    default 16 characters. By allocating a bigger buffer right away we avoid some
    potentially-expensive reallocs as the string grows.
    
    Change-Id: Iaa35840f66975f03d8f92bbea26979df48bbc887
    Reviewed-on: https://code.wireshark.org/review/1601
    Reviewed-by: Michael Mann <mmann78@xxxxxxxxxxxx>
    

Actions performed:

    from  ff466a9   Increase time permitted when fuzzing with valgrind.
    adds  d73400a   Minor optimization to packet-frame.c


Summary of changes:
 epan/dissectors/packet-frame.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)