X-Git-Url: http://git.archive.openwrt.org/?p=project%2Flibubox.git;a=blobdiff_plain;f=ustream.c;h=828a025b267bc30ba250d589842c1bd4ab6cb734;hp=dfbee1a9c49dd486741c0eb4e67778bed9428d74;hb=cbf80de7f4df61960f386cb01a899cf4228d38f3;hpb=734d28eb1a46358743cf8837c91e5d46695c3b91 diff --git a/ustream.c b/ustream.c index dfbee1a..828a025 100644 --- a/ustream.c +++ b/ustream.c @@ -276,7 +276,7 @@ static bool ustream_prepare_buf(struct ustream *s, struct ustream_buf_list *l, i 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);