projects
/
pspp
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
REGRESSION: Fix issues found by by review
[pspp]
/
src
/
libpspp
/
inflate.c
diff --git
a/src/libpspp/inflate.c
b/src/libpspp/inflate.c
index 478747843b743869bd596fd39b97bba85e64cd7b..c4ad1cffc9022afb14ed8749d339dfcb66e909b6 100644
(file)
--- a/
src/libpspp/inflate.c
+++ b/
src/libpspp/inflate.c
@@
-99,6
+99,7
@@
inflate_init (struct zip_member *zm)
int
inflate_read (struct zip_member *zm, void *buf, size_t n)
{
int
inflate_read (struct zip_member *zm, void *buf, size_t n)
{
+ int r;
struct inflator *inf = zm->aux;
if (inf->zss.avail_in == 0)
struct inflator *inf = zm->aux;
if (inf->zss.avail_in == 0)
@@
-134,7
+135,7
@@
inflate_read (struct zip_member *zm, void *buf, size_t n)
inf->zss.avail_out = n;
inf->zss.next_out = buf;
inf->zss.avail_out = n;
inf->zss.next_out = buf;
-
int
r = inflate (&inf->zss, Z_NO_FLUSH);
+ r = inflate (&inf->zss, Z_NO_FLUSH);
if ( Z_OK == r)
{
return n - inf->zss.avail_out;
if ( Z_OK == r)
{
return n - inf->zss.avail_out;