commit | 79df481dc4723cc018731508bc08ce42b3b2eb17 | [log] [tgz] |
---|---|---|
author | Denys Vlasenko <vda.linux@googlemail.com> | Fri Jan 10 14:38:26 2014 +0100 |
committer | Denys Vlasenko <vda.linux@googlemail.com> | Fri Jan 10 14:38:26 2014 +0100 |
tree | 8b7040d01b35f4ec69bb5d566dd128a543a060f4 | |
parent | 7c47b560a8fc97956dd8132bd7f1863d83c19866 [diff] [blame] |
lineedit: fix trivial build failure Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
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 *n = xzalloc(sizeof(*n)); n->flags = flags; +#if MAX_HISTORY > 0 n->max_history = MAX_HISTORY; +#endif return n; }