diff options
Diffstat (limited to 'cli')
-rw-r--r-- | cli/src/cli.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/cli/src/cli.c b/cli/src/cli.c index 5f0441fdf98..2a7810d9743 100644 --- a/cli/src/cli.c +++ b/cli/src/cli.c @@ -527,8 +527,9 @@ _cli_err (const char *fmt, ...) #ifdef HAVE_READLINE if (state->rl_enabled && !state->rl_processing) { + ret = cli_rl_err (state, fmt, ap); va_end (ap); - return cli_rl_err (state, fmt, ap); + return ret; } #endif @@ -552,8 +553,9 @@ _cli_out (const char *fmt, ...) va_start (ap, fmt); #ifdef HAVE_READLINE if (state->rl_enabled && !state->rl_processing) { + ret = cli_rl_out (state, fmt, ap); va_end (ap); - return cli_rl_out (state, fmt, ap); + return ret; } #endif |