Fix PellesC warning.

This commit is contained in:
Gisle Vanem 2005-12-20 20:58:51 +00:00
parent f1f32477e3
commit 5f487123df
1 changed files with 2 additions and 1 deletions

View File

@ -50,7 +50,7 @@ int ares__read_line(FILE *fp, char **buf, int *bufsize)
if ((*buf)[len - 1] == '\n') if ((*buf)[len - 1] == '\n')
{ {
(*buf)[len - 1] = 0; (*buf)[len - 1] = 0;
return ARES_SUCCESS; break;
} }
offset = len; offset = len;
@ -61,4 +61,5 @@ int ares__read_line(FILE *fp, char **buf, int *bufsize)
*buf = newbuf; *buf = newbuf;
*bufsize *= 2; *bufsize *= 2;
} }
return ARES_SUCCESS;
} }