Permalink
Browse files

Fixed a bug introduced in prior commit designed to reduce mallocs

  • Loading branch information...
1 parent d6a43cd commit cd16d7576b75d5bc7eb323d837327cc745c914c8 @iliaal iliaal committed Jun 11, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 php_memcached.c
View
@@ -2619,7 +2619,7 @@ static char *php_memc_zval_to_payload(zval *value, size_t *payload_len, uint32_t
}
/* turn off compression for values below the threshold */
- if ((*flags & MEMC_VAL_COMPRESSED) && buf.len < MEMC_G(compression_threshold)) {
+ if ((*flags & MEMC_VAL_COMPRESSED) && l < MEMC_G(compression_threshold)) {
*flags &= ~MEMC_VAL_COMPRESSED;
}

0 comments on commit cd16d75

Please sign in to comment.