]> The Tcpdump Group git mirrors - tcpdump/commitdiff
Get rid of unnecessary initialization.
authorGuy Harris <[email protected]>
Fri, 30 Nov 2012 20:47:33 +0000 (12:47 -0800)
committerGuy Harris <[email protected]>
Fri, 30 Nov 2012 20:47:33 +0000 (12:47 -0800)
v is set to p later in a loop, and isn't used until then.

print-pppoe.c

index bcc976c4b7981c768049978263bf417952f67ece..8040c7ae09c2375ec8ccd8f1616cba49af000596 100644 (file)
@@ -159,7 +159,7 @@ pppoe_print(register const u_char *bp, u_int length)
 
                        if (tag_len) {
                                unsigned isascii = 0, isgarbage = 0;
-                               const u_char *v = p;
+                               const u_char *v;
                                char tag_str[MAXTAGPRINT];
                                unsigned tag_str_len = 0;