[git commit] lineedit: fix trivial build failure
Denys Vlasenko
vda.linux at googlemail.com
Fri Jan 10 13:38:26 UTC 2014
commit: http://git.busybox.net/busybox/commit/?id=79df481dc4723cc018731508bc08ce42b3b2eb17
branch: http://git.busybox.net/busybox/commit/?id=refs/heads/master
Signed-off-by: Denys Vlasenko <vda.linux at googlemail.com>
---
libbb/lineedit.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/libbb/lineedit.c b/libbb/lineedit.c
index b168f1b..8564307 100644
--- a/libbb/lineedit.c
+++ b/libbb/lineedit.c
@@ -1255,7 +1255,9 @@ line_input_t* FAST_FUNC new_line_input_t(int flags)
{
line_input_t *n = xzalloc(sizeof(*n));
n->flags = flags;
+#if MAX_HISTORY > 0
n->max_history = MAX_HISTORY;
+#endif
return n;
}
More information about the busybox-cvs
mailing list