Skip to content

Commit cd16d75

Browse files
committed
Fixed a bug introduced in prior commit designed to reduce mallocs
1 parent d6a43cd commit cd16d75

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

php_memcached.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2619,7 +2619,7 @@ static char *php_memc_zval_to_payload(zval *value, size_t *payload_len, uint32_t
26192619
}
26202620

26212621
/* turn off compression for values below the threshold */
2622-
if ((*flags & MEMC_VAL_COMPRESSED) && buf.len < MEMC_G(compression_threshold)) {
2622+
if ((*flags & MEMC_VAL_COMPRESSED) && l < MEMC_G(compression_threshold)) {
26232623
*flags &= ~MEMC_VAL_COMPRESSED;
26242624
}
26252625

0 commit comments

Comments
 (0)