diff options
author | Alexis La Goutte <alexis.lagoutte@gmail.com> | 2011-04-21 13:33:59 +0000 |
---|---|---|
committer | Alexis La Goutte <alexis.lagoutte@gmail.com> | 2011-04-21 13:33:59 +0000 |
commit | 866aede51e31c8b9c1beb4958ecb64c57c7c1ea6 (patch) | |
tree | 40285599e1e8108fd748ee7a581fc6c3210581c4 /epan/dissectors/packet-smtp.c | |
parent | b966f44acf27f8ee946cef126229c6962ab4a024 (diff) |
Fix Dead Store (Dead nested assignment) Warning found by Clang
svn path=/trunk/; revision=36759
Diffstat (limited to 'epan/dissectors/packet-smtp.c')
-rw-r--r-- | epan/dissectors/packet-smtp.c | 3 |
1 files changed, 1 insertions, 2 deletions
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)) { |