diff options
author | Gisle Vanem <gvanem@broadpark.no> | 2005-12-20 20:58:51 +0000 |
---|---|---|
committer | Gisle Vanem <gvanem@broadpark.no> | 2005-12-20 20:58:51 +0000 |
commit | 5f487123df3557907b78f9d1ca8f29a7044af936 (patch) | |
tree | c9122074e425dfcfd4c69e461a7203149249d07e /ares | |
parent | f1f32477e35aba50b84ec9892cd8b3357d2100cb (diff) |
Fix PellesC warning.
Diffstat (limited to 'ares')
-rw-r--r-- | ares/ares__read_line.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/ares/ares__read_line.c b/ares/ares__read_line.c index 5a66c63ba..f4d4f505b 100644 --- a/ares/ares__read_line.c +++ b/ares/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; } |