Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.openwrt.org/project/libubox.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2014-04-12 22:21:13 +0400
committerFelix Fietkau <nbd@openwrt.org>2014-04-12 22:21:13 +0400
commitc725f9f7a551bf31fd315d66c2a8a7fb8892b911 (patch)
tree3af3a382f78df629659c734770ce807f66a361a6 /ustream.c
parent93a4cb92c18334af6f102eb76a812d8e888510d4 (diff)
ustream: remove unnecessary initialization
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
Diffstat (limited to 'ustream.c')
-rw-r--r--ustream.c2
1 files changed, 1 insertions, 1 deletions
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);