aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/asn1/snmp
diff options
context:
space:
mode:
authorMichael Mann <mmann78@netscape.net>2017-01-29 21:53:49 -0500
committerMichael Mann <mmann78@netscape.net>2017-01-31 02:26:35 +0000
commitd802b5b0ec8e10fbf64f6c76815b759323029bb4 (patch)
tree2071ff718141347ff02c8dc02aafb9090e8fc5e1 /epan/dissectors/asn1/snmp
parent60a877167f05644a5a75676798084027accd1c3d (diff)
Add format_text_wmem.
This allows for a wmem_allocator for users of format_text who want it (dissectors for wmem_packet_scope()). This lessens the role of current format_text functionality in hopes that it will eventually be replaced. Change-Id: I970557a65e32aa79634a3fcc654ab641b871178e Reviewed-on: https://code.wireshark.org/review/19855 Reviewed-by: Michael Mann <mmann78@netscape.net>
Diffstat (limited to 'epan/dissectors/asn1/snmp')
-rw-r--r--epan/dissectors/asn1/snmp/packet-snmp-template.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/epan/dissectors/asn1/snmp/packet-snmp-template.c b/epan/dissectors/asn1/snmp/packet-snmp-template.c
index 00ea2e2619..13719286a4 100644
--- a/epan/dissectors/asn1/snmp/packet-snmp-template.c
+++ b/epan/dissectors/asn1/snmp/packet-snmp-template.c
@@ -69,12 +69,6 @@
#include <wsutil/wsgcrypt.h>
-/* Take a pointer that may be null and return a pointer that's not null
- by turning null pointers into pointers to the above null string,
- and, if the argument pointer wasn't null, make sure we handle
- non-printable characters in the string by escaping them. */
-#define SAFE_STRING(s, l) (((s) != NULL) ? format_text((s), (l)) : "")
-
#define PNAME "Simple Network Management Protocol"
#define PSNAME "SNMP"
#define PFNAME "snmp"