From e72d867e54dbd5b37fa15fff8356c9327d02484e Mon Sep 17 00:00:00 2001 From: batt Date: Fri, 13 Nov 2009 18:18:11 +0000 Subject: [PATCH] Add missing initialization. git-svn-id: https://src.develer.com/svnoss/bertos/trunk@3112 38d2e660-2303-0410-9eaa-f027e97ec537 --- bertos/mware/readline.h | 1 + 1 file changed, 1 insertion(+) diff --git a/bertos/mware/readline.h b/bertos/mware/readline.h index a106a4ce..5f420f96 100644 --- a/bertos/mware/readline.h +++ b/bertos/mware/readline.h @@ -95,6 +95,7 @@ INLINE void rl_clear_history(struct RLContext *ctx) { memset(ctx->real_history, 0, sizeof(ctx->real_history)); ctx->history_pos = 0; + ctx->line_pos = ctx->history_pos; ctx->history = ctx->real_history; } -- 2.25.1