diff options
author | Evan Huus <eapache@gmail.com> | 2014-05-11 17:55:20 -0400 |
---|---|---|
committer | Michael Mann <mmann78@netscape.net> | 2014-05-11 23:13:54 +0000 |
commit | d73400a607ce9ae96cada2f042bc2086eaccef98 (patch) | |
tree | 67f426022757855e35728fc3cafed7adbc4da342 /epan/dissectors/packet-dis.c | |
parent | ff466a9b920507c34068b2cc6f42b32049948183 (diff) | |
download | wireshark-d73400a607ce9ae96cada2f042bc2086eaccef98.tar.gz |
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@netscape.net>
Diffstat (limited to 'epan/dissectors/packet-dis.c')
0 files changed, 0 insertions, 0 deletions