aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndersBroman <anders.broman@ericsson.com>2017-12-04 10:54:07 +0100
committerAnders Broman <a.broman58@gmail.com>2017-12-04 11:58:55 +0000
commit585a57ea1ec547a26a335a56db3c68c2789cdd11 (patch)
treeb7a630c8cd68251ace7566de928993e588076256
parentd747900bc88d2f40b434a7c5b5d8762e789087ea (diff)
[decode_as.c] Use g_list_prepend() insted of g_list_append, it's faster.
Change-Id: I56c4a7948da48d02c81c5cf30187a6eeb973db77 Reviewed-on: https://code.wireshark.org/review/24700 Petri-Dish: Anders Broman <a.broman58@gmail.com> Tested-by: Petri Dish Buildbot Reviewed-by: Anders Broman <a.broman58@gmail.com>
-rw-r--r--epan/decode_as.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/epan/decode_as.c b/epan/decode_as.c
index 43405fa3e9..01cba85882 100644
--- a/epan/decode_as.c
+++ b/epan/decode_as.c
@@ -52,7 +52,7 @@ void register_decode_as(decode_as_t* reg)
dissector_table_allow_decode_as(decode_table);
}
- decode_as_list = g_list_append(decode_as_list, reg);
+ decode_as_list = g_list_prepend(decode_as_list, reg);
}
static void next_proto_prompt(packet_info *pinfo _U_, gchar *result)