commit | db9c57eed1db2fd53bfd653efcf19210e5b14080 | [log] [tgz] |
---|---|---|
author | Denys Vlasenko <vda.linux@googlemail.com> | Sun Sep 27 02:48:53 2009 +0200 |
committer | Denys Vlasenko <vda.linux@googlemail.com> | Sun Sep 27 02:48:53 2009 +0200 |
tree | 2ec2bccdd5186d8c27cf60fa659ca39ca7396ba8 | |
parent | e74aaf93854b9453b9949954aec77710b257d8b6 [diff] [blame] |
libbb/lineedit: fix the case when we configured history to have 0 lines Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
diff --git a/shell/ash.c b/shell/ash.c index d7355ce..9529613 100644 --- a/shell/ash.c +++ b/shell/ash.c
@@ -13317,7 +13317,7 @@ } if (sflag || minusc == NULL) { -#if ENABLE_FEATURE_EDITING_SAVEHISTORY +#if MAX_HISTORY > 0 && ENABLE_FEATURE_EDITING_SAVEHISTORY if (iflag) { const char *hp = lookupvar("HISTFILE"); if (hp)