Skip to content

Commit

Permalink
Merge pull request #1648 from phpredis/issue-smart
Browse files Browse the repository at this point in the history
missing nul byte
  • Loading branch information
yatsukhnenko committed Oct 9, 2019
2 parents 62fd5a3 + 8bc2240 commit 4ff9bd7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion redis.c
Original file line number Diff line number Diff line change
Expand Up @@ -887,7 +887,8 @@ PHP_MINFO_FUNCTION(redis)
smart_str_appends(&names, "zstd");
#endif
if (names.s) {
php_info_print_table_row(2, "Available compression", names.s->val);
smart_str_0(&names);
php_info_print_table_row(2, "Available compression", ZSTR_VAL(names.s));
}
smart_str_free(&names);
php_info_print_table_end();
Expand Down

0 comments on commit 4ff9bd7

Please sign in to comment.