Skip to content

Commit f923957

Browse files
committed
fix: variable declaration
fixed #63
1 parent f2197ee commit f923957

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

zstd.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -588,7 +588,6 @@ static ssize_t php_zstd_decomp_read(php_stream *stream, char *buf, size_t count)
588588
#if PHP_VERSION_ID < 70400
589589
static size_t php_zstd_comp_write(php_stream *stream, const char *buf, size_t count)
590590
{
591-
size_t ret = 0;
592591
#else
593592
static ssize_t php_zstd_comp_write(php_stream *stream, const char *buf, size_t count)
594593
{
@@ -616,6 +615,7 @@ static ssize_t php_zstd_comp_write(php_stream *stream, const char *buf, size_t c
616615
return count;
617616

618617
#else
618+
size_t ret = 0;
619619
size_t x, res;
620620

621621
while(count > 0) {

0 commit comments

Comments
 (0)