summaryrefslogtreecommitdiff
path: root/ares__read_line.c
diff options
context:
space:
mode:
authorGisle Vanem <gvanem@broadpark.no>2005-12-20 20:58:51 (GMT)
committerGisle Vanem <gvanem@broadpark.no>2005-12-20 20:58:51 (GMT)
commite2bdd6b5a6f12de8581abfe201f9cfcc799cfff0 (patch)
treef2dd608124fe925e955e23d5f1a1f2671a4c2a70 /ares__read_line.c
parentac9950c3eb570436abbe7370f1b2dd3fb104e804 (diff)
downloadc-ares-e2bdd6b5a6f12de8581abfe201f9cfcc799cfff0.zip
c-ares-e2bdd6b5a6f12de8581abfe201f9cfcc799cfff0.tar.gz
c-ares-e2bdd6b5a6f12de8581abfe201f9cfcc799cfff0.tar.bz2
Fix PellesC warning.
Diffstat (limited to 'ares__read_line.c')
-rw-r--r--ares__read_line.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/ares__read_line.c b/ares__read_line.c
index 5a66c63..f4d4f50 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;
}