summaryrefslogtreecommitdiff
path: root/epan/dissectors/packet-dis.c
diff options
context:
space:
mode:
authorEvan Huus <eapache@gmail.com>2014-05-11 17:55:20 -0400
committerMichael Mann <mmann78@netscape.net>2014-05-11 23:13:54 +0000
commitd73400a607ce9ae96cada2f042bc2086eaccef98 (patch)
tree67f426022757855e35728fc3cafed7adbc4da342 /epan/dissectors/packet-dis.c
parentff466a9b920507c34068b2cc6f42b32049948183 (diff)
downloadwireshark-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