removed unneeded memset
This commit is contained in:
parent
da96e34948
commit
626ad07312
1
ii.c
1
ii.c
@ -388,7 +388,6 @@ static int read_line(int fd, size_t res_len, char *buf)
|
|||||||
static void handle_channels_input(Channel *c)
|
static void handle_channels_input(Channel *c)
|
||||||
{
|
{
|
||||||
static char buf[PIPE_BUF];
|
static char buf[PIPE_BUF];
|
||||||
memset(buf,0,sizeof(buf));
|
|
||||||
if(read_line(c->fd, PIPE_BUF, buf) == -1) {
|
if(read_line(c->fd, PIPE_BUF, buf) == -1) {
|
||||||
int fd = open_channel(c->name);
|
int fd = open_channel(c->name);
|
||||||
if(fd != -1)
|
if(fd != -1)
|
||||||
|
Loading…
Reference in New Issue
Block a user