py: Small cleanup in stream.c.
This commit is contained in:
parent
d5e7f6e37e
commit
69b7dae362
@ -225,8 +225,7 @@ STATIC mp_obj_t stream_readall(mp_obj_t self_in) {
|
|||||||
|
|
||||||
int total_size = 0;
|
int total_size = 0;
|
||||||
vstr_t *vstr = vstr_new_size(DEFAULT_BUFFER_SIZE);
|
vstr_t *vstr = vstr_new_size(DEFAULT_BUFFER_SIZE);
|
||||||
char *buf = vstr_str(vstr);
|
char *p = vstr_str(vstr);
|
||||||
char *p = buf;
|
|
||||||
int error;
|
int error;
|
||||||
int current_read = DEFAULT_BUFFER_SIZE;
|
int current_read = DEFAULT_BUFFER_SIZE;
|
||||||
while (true) {
|
while (true) {
|
||||||
|
Loading…
Reference in New Issue
Block a user