initialization
This commit is contained in:
parent
6a29c85a38
commit
dd0fe21a09
2
ii.c
2
ii.c
@ -377,7 +377,7 @@ static void proc_server_cmd(char *buf) {
|
|||||||
|
|
||||||
static int read_line(int fd, size_t res_len, char *buf) {
|
static int read_line(int fd, size_t res_len, char *buf) {
|
||||||
size_t i = 0;
|
size_t i = 0;
|
||||||
char c;
|
char c = 0;
|
||||||
do {
|
do {
|
||||||
if(read(fd, &c, sizeof(char)) != sizeof(char))
|
if(read(fd, &c, sizeof(char)) != sizeof(char))
|
||||||
return -1;
|
return -1;
|
||||||
|
Loading…
Reference in New Issue
Block a user