aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorStig Bjørlykke <stig@bjorlykke.org>2012-03-27 06:57:30 +0000
committerStig Bjørlykke <stig@bjorlykke.org>2012-03-27 06:57:30 +0000
commitcaf47612028682318611b9f3c1f3adbe69cc9314 (patch)
tree1f31f3740caa1ba52a467e45aae7a00c970e5228 /plugins
parent6e1194d7ba61f989f9515eb5376f2c707ec4985a (diff)
Added a check for a valid pointer to avoid a warning from clang.
svn path=/trunk/; revision=41793
Diffstat (limited to 'plugins')
-rw-r--r--plugins/asn1/packet-asn1.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/asn1/packet-asn1.c b/plugins/asn1/packet-asn1.c
index f4842dd238..e56a6bccf6 100644
--- a/plugins/asn1/packet-asn1.c
+++ b/plugins/asn1/packet-asn1.c
@@ -4666,7 +4666,7 @@ getPDUprops(PDUprops *out, guint offset, guint class, guint tag, guint cons)
if (ISOPTIONAL) { /* must check the tag */
while(! MATCH) { /* check optional here again...? */
- if (asn1_verbose)
+ if (asn1_verbose && info)
g_message(" got %c%d, found %c%d", tag_class[class], tag,
tag_class[info->tclass], info->tag);
NEXT;
@@ -4686,7 +4686,7 @@ getPDUprops(PDUprops *out, guint offset, guint class, guint tag, guint cons)
out->flags |= OUT_FLAG_noname;
if (asn1_verbose)
g_message(" *end of optional list...");
- info = 0; /* this is not valid any more... */
+ info = NULL; /* this is not valid any more... */
}
break; /* end of list */
}