ii

git clone https://orangeshoelaces.net/git/ii.git

dd0fe21a09f18751542aa29fef61857f145e4b5c

Author: Nico Golde on 02/04/2007

Committer: Nico Golde on 02/04/2007

initialization

Stats

ii.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

Patch

diff --git a/ii.c b/ii.c
index e116064..be60b43 100644
--- a/ii.c
+++ b/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) {
 	size_t i = 0;
-	char c;
+	char c = 0;
 	do {
 		if(read(fd, &c, sizeof(char)) != sizeof(char))
 			return -1;