aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-multipart.c
diff options
context:
space:
mode:
authorGraeme Lunt <graeme.lunt@smhs.co.uk>2007-07-14 09:58:08 +0000
committerGraeme Lunt <graeme.lunt@smhs.co.uk>2007-07-14 09:58:08 +0000
commitd23237ab38c536d48e40885f466f8d5e3462a9e4 (patch)
tree9d61cddbc3653b991854b6df51dca0d5a445facf /epan/dissectors/packet-multipart.c
parent3347aa9950ce5e651674d45671a58e7d288f9ba7 (diff)
Fix for warnings on OSX.
svn path=/trunk/; revision=22313
Diffstat (limited to 'epan/dissectors/packet-multipart.c')
-rw-r--r--epan/dissectors/packet-multipart.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/epan/dissectors/packet-multipart.c b/epan/dissectors/packet-multipart.c
index 17f87efe48..135ea44378 100644
--- a/epan/dissectors/packet-multipart.c
+++ b/epan/dissectors/packet-multipart.c
@@ -681,7 +681,7 @@ process_body_part(proto_tree *tree, tvbuff_t *tvb, const guint8 *boundary,
proto_item_append_text(ti, " (%s)", content_type_str);
/* find the "name" parameter in case we don't find a content disposition "filename" */
- if(typename = find_parameter(parameters, "name=", &len)) {
+ if((typename = find_parameter(parameters, "name=", &len)) != NULL) {
typename = g_strndup(typename, len);
}
}
@@ -707,7 +707,7 @@ process_body_part(proto_tree *tree, tvbuff_t *tvb, const guint8 *boundary,
case POS_CONTENT_DISPOSITION:
{
/* find the "filename" parameter */
- if(filename = find_parameter(value_str, "filename=", &len)) {
+ if((filename = find_parameter(value_str, "filename=", &len)) != NULL) {
filename = g_strndup(filename, len);
}
}