diff options
Diffstat (limited to 'contrib/ltree/crc32.c')
| -rw-r--r-- | contrib/ltree/crc32.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/contrib/ltree/crc32.c b/contrib/ltree/crc32.c index ea1a661fef..9c62216dd7 100644 --- a/contrib/ltree/crc32.c +++ b/contrib/ltree/crc32.c @@ -103,12 +103,10 @@ ltree_crc32_sz(char *buf, int size) { unsigned int crc = ~((unsigned int) 0); char *p; - int len, - nr; + int nr; - len = 0; nr = size; - for (len += nr, p = buf; nr--; ++p) + for (p = buf; nr--; ++p) _CRC32_(crc, TOLOWER((unsigned int) *p)); return ~crc; } |
