summaryrefslogtreecommitdiffstats
path: root/lib/checksum.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/checksum.c')
-rw-r--r--lib/checksum.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/lib/checksum.c b/lib/checksum.c
index 43940b715..116aaafc9 100644
--- a/lib/checksum.c
+++ b/lib/checksum.c
@@ -58,13 +58,10 @@ fletcher_checksum(u_char * buffer, const size_t len, const uint16_t offset)
{
u_int8_t *p;
int x, y, c0, c1;
- u_int16_t checksum;
+ u_int16_t checksum = 0;
u_int16_t *csum;
size_t partial_len, i, left = len;
- checksum = 0;
-
-
if (offset != FLETCHER_CHECKSUM_VALIDATE)
/* Zero the csum in the packet. */
{