Skip to content

Commit 4ff9bd7

Browse files
authored
Merge pull request phpredis#1648 from phpredis/issue-smart
missing nul byte
2 parents 62fd5a3 + 8bc2240 commit 4ff9bd7

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

redis.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -887,7 +887,8 @@ PHP_MINFO_FUNCTION(redis)
887887
smart_str_appends(&names, "zstd");
888888
#endif
889889
if (names.s) {
890-
php_info_print_table_row(2, "Available compression", names.s->val);
890+
smart_str_0(&names);
891+
php_info_print_table_row(2, "Available compression", ZSTR_VAL(names.s));
891892
}
892893
smart_str_free(&names);
893894
php_info_print_table_end();

0 commit comments

Comments
 (0)