aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-ber.c
diff options
context:
space:
mode:
Diffstat (limited to 'epan/dissectors/packet-ber.c')
-rw-r--r--epan/dissectors/packet-ber.c9
1 files changed, 2 insertions, 7 deletions
diff --git a/epan/dissectors/packet-ber.c b/epan/dissectors/packet-ber.c
index 6d8b6dbc11..2e1baa8a71 100644
--- a/epan/dissectors/packet-ber.c
+++ b/epan/dissectors/packet-ber.c
@@ -513,13 +513,8 @@ void
ber_decode_as(const gchar *syntax)
{
- if (decode_as_syntax) {
- g_free(decode_as_syntax);
- decode_as_syntax = NULL;
- }
-
- if (syntax)
- decode_as_syntax = g_strdup(syntax);
+ g_free(decode_as_syntax);
+ decode_as_syntax = g_strdup(syntax);
}
/* Get oid syntax from hash table to get translation in proto dissection(packet-per.c) */