Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 8bc2240

Browse files
committed
missing nul byte
1 parent 62fd5a3 commit 8bc2240

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

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)