From 866aede51e31c8b9c1beb4958ecb64c57c7c1ea6 Mon Sep 17 00:00:00 2001 From: Alexis La Goutte Date: Thu, 21 Apr 2011 13:33:59 +0000 Subject: Fix Dead Store (Dead nested assignment) Warning found by Clang svn path=/trunk/; revision=36759 --- epan/dissectors/packet-smtp.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'epan/dissectors/packet-smtp.c') diff --git a/epan/dissectors/packet-smtp.c b/epan/dissectors/packet-smtp.c index cf2f3360b5..d4512ee45c 100644 --- a/epan/dissectors/packet-smtp.c +++ b/epan/dissectors/packet-smtp.c @@ -255,7 +255,6 @@ dissect_smtp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) conversation_t *conversation; struct smtp_session_state *session_state; const guchar *line, *linep, *lineend; - guchar c; guint32 code; int linelen = 0; gint length_remaining; @@ -475,7 +474,7 @@ dissect_smtp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) */ linep = line; lineend = line + linelen; - while (linep < lineend && (c = *linep) != ' ') + while (linep < lineend && *linep != ' ') linep++; cmdlen = (int)(linep - line); if (line_is_smtp_command(line, cmdlen)) { -- cgit v1.2.3