2001-12-13 Marcus Brinkmann <marcus@gnu.org>

* assuan-buffer.c (assuan_read_line): Fix order of execution to
	get correct return values.
This commit is contained in:
Marcus Brinkmann 2001-12-13 20:13:34 +00:00
parent 3634edf055
commit 05394e788e
2 changed files with 10 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2001-12-13 Marcus Brinkmann <marcus@gnu.org>
* assuan-buffer.c (assuan_read_line): Fix order of execution to
get correct return values.
2001-12-13 Werner Koch <wk@gnupg.org>
* assuan-handler.c (assuan_get_active_fds): Fixed silly bug,

View File

@ -172,11 +172,15 @@ _assuan_read_line (ASSUAN_CONTEXT ctx)
AssuanError
assuan_read_line (ASSUAN_CONTEXT ctx, char **line, size_t *linelen)
{
AssuanError err;
if (!ctx)
return ASSUAN_Invalid_Value;
err = _assuan_read_line (ctx);
*line = ctx->inbound.line;
*linelen = ctx->inbound.linelen;
return _assuan_read_line (ctx);
return err;
}