]> The Tcpdump Group git mirrors - libpcap/commitdiff
Get rid of unnecessary setting of a variable.
authorGuy Harris <[email protected]>
Sun, 9 Aug 2015 18:22:41 +0000 (11:22 -0700)
committerGuy Harris <[email protected]>
Sun, 9 Aug 2015 18:22:41 +0000 (11:22 -0700)
fix2 is modified, unconditionally, before it's used and after it's
initialized.

Squelches a warning from the Clang static analyzer.

gencode.c

index 090a8ed3ddece9efa7319df919aa2c4666b6cc78..33bcb48458f5478bff67722d06d5658cd8f43fdb 100644 (file)
--- a/gencode.c
+++ b/gencode.c
@@ -5561,7 +5561,7 @@ gen_protochain(v, proto, dir)
        int reg2 = alloc_reg();
 
        memset(s, 0, sizeof(s));
-       fix2 = fix3 = fix4 = fix5 = 0;
+       fix3 = fix4 = fix5 = 0;
 
        switch (proto) {
        case Q_IP: