From e2bdd6b5a6f12de8581abfe201f9cfcc799cfff0 Mon Sep 17 00:00:00 2001 From: Gisle Vanem Date: Tue, 20 Dec 2005 20:58:51 +0000 Subject: [PATCH] Fix PellesC warning. --- ares__read_line.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ares__read_line.c b/ares__read_line.c index 5a66c63b..f4d4f505 100644 --- a/ares__read_line.c +++ b/ares__read_line.c @@ -50,7 +50,7 @@ int ares__read_line(FILE *fp, char **buf, int *bufsize) if ((*buf)[len - 1] == '\n') { (*buf)[len - 1] = 0; - return ARES_SUCCESS; + break; } offset = len; @@ -61,4 +61,5 @@ int ares__read_line(FILE *fp, char **buf, int *bufsize) *buf = newbuf; *bufsize *= 2; } + return ARES_SUCCESS; }