* libc/stdio/open_memstream.c (internal_open_memstream_r): Initialize
c->pos to 0.
This commit is contained in:
parent
50db0deb25
commit
23c0f21594
|
@ -1,3 +1,8 @@
|
|||
2014-02-20 Corinna Vinschen <vinschen@redhat.com>
|
||||
|
||||
* libc/stdio/open_memstream.c (internal_open_memstream_r): Initialize
|
||||
c->pos to 0.
|
||||
|
||||
2014-02-11 Joey Ye <joey.ye@arm.com>
|
||||
|
||||
* libc/sys/arm/syscalls.c (_sbrk): Define as weak symbols.
|
||||
|
|
|
@ -355,6 +355,7 @@ _DEFUN(internal_open_memstream_r, (ptr, buf, size, wide),
|
|||
c->storage = c;
|
||||
c->pbuf = buf;
|
||||
c->psize = size;
|
||||
c->pos = 0;
|
||||
c->eof = 0;
|
||||
c->saved.w = L'\0';
|
||||
c->wide = (int8_t) wide;
|
||||
|
|
Loading…
Reference in New Issue