Update to gobook@0a3e8d997823052c6a8575feca6e515ac6f8299d

This commit is contained in:
Alan Donovan
2015-11-30 22:37:52 -05:00
parent 84af1e6bd3
commit 34cd1719c0
7 changed files with 343 additions and 3 deletions
+6
View File
@@ -17,6 +17,12 @@ int bz2compress(bz_stream *s, int action,
int r = BZ2_bzCompress(s, action);
*inlen -= s->avail_in;
*outlen -= s->avail_out;
/* "C code may store a Go pointer in C memory subject to rule 2:
* it must stop storing the pointer before it returns to Go." */
s->next_in = NULL;
s->next_out = NULL;
return r;
}