summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDenys Vlasenko2014-01-10 14:38:26 +0100
committerDenys Vlasenko2014-01-10 14:38:26 +0100
commit79df481dc4723cc018731508bc08ce42b3b2eb17 (patch)
tree8b7040d01b35f4ec69bb5d566dd128a543a060f4
parent7c47b560a8fc97956dd8132bd7f1863d83c19866 (diff)
downloadbusybox-79df481dc4723cc018731508bc08ce42b3b2eb17.zip
busybox-79df481dc4723cc018731508bc08ce42b3b2eb17.tar.gz
lineedit: fix trivial build failure
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
-rw-r--r--libbb/lineedit.c2
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;
}