Commit e470f917 authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

Remove an old fall-back to stdout which has not been used for approx 15 years.

parent ef23612b
......@@ -638,16 +638,13 @@ VCLI_Out(struct cli *cli, const char *fmt, ...)
{
va_list ap;
AN(cli);
va_start(ap, fmt);
if (cli != NULL) {
CHECK_OBJ_NOTNULL(cli, CLI_MAGIC);
if (VSB_len(cli->sb) < *cli->limit)
(void)VSB_vprintf(cli->sb, fmt, ap);
else if (cli->result == CLIS_OK)
cli->result = CLIS_TRUNCATED;
} else {
(void)vfprintf(stdout, fmt, ap);
}
CHECK_OBJ_NOTNULL(cli, CLI_MAGIC);
if (VSB_len(cli->sb) < *cli->limit)
(void)VSB_vprintf(cli->sb, fmt, ap);
else if (cli->result == CLIS_OK)
cli->result = CLIS_TRUNCATED;
va_end(ap);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment