summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
93a4cb9)
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
char *ustream_reserve(struct ustream *s, int len, int *maxlen)
{
char *ustream_reserve(struct ustream *s, int len, int *maxlen)
{
- struct ustream_buf *buf = s->r.head;
+ struct ustream_buf *buf;
if (!ustream_prepare_buf(s, &s->r, len)) {
__ustream_set_read_blocked(s, s->read_blocked | READ_BLOCKED_FULL);
if (!ustream_prepare_buf(s, &s->r, len)) {
__ustream_set_read_blocked(s, s->read_blocked | READ_BLOCKED_FULL);