librb: rb_linebuf_copy_raw: remove unused assignment

This commit is contained in:
Simon Arlott 2017-07-29 19:27:19 +01:00
parent ab5fc9c032
commit 630c15211d
No known key found for this signature in database
GPG key ID: C8975F2043CA5D24

View file

@ -292,7 +292,6 @@ rb_linebuf_copy_raw(buf_head_t * bufhead, buf_line_t * bufline, char *data, int
clen = BUF_DATA_SIZE - bufline->len - 1;
memcpy(bufch, ch, clen);
bufline->buf[BUF_DATA_SIZE - 1] = '\0';
bufch = bufline->buf + BUF_DATA_SIZE - 2;
bufline->terminated = 1;
bufline->len = BUF_DATA_SIZE - 1;
bufhead->len += BUF_DATA_SIZE - 1;