initialization

This commit is contained in:
Nico Golde 2007-02-04 12:14:20 +01:00
parent 6a29c85a38
commit dd0fe21a09

2
ii.c
View File

@ -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;