diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2009-09-27 02:48:53 +0200 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2009-09-27 02:48:53 +0200 |
commit | db9c57eed1db2fd53bfd653efcf19210e5b14080 (patch) | |
tree | 2ec2bccdd5186d8c27cf60fa659ca39ca7396ba8 /shell | |
parent | e74aaf93854b9453b9949954aec77710b257d8b6 (diff) | |
download | busybox-w32-db9c57eed1db2fd53bfd653efcf19210e5b14080.tar.gz busybox-w32-db9c57eed1db2fd53bfd653efcf19210e5b14080.tar.bz2 busybox-w32-db9c57eed1db2fd53bfd653efcf19210e5b14080.zip |
libbb/lineedit: fix the case when we configured history to have 0 lines
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'shell')
-rw-r--r-- | shell/ash.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/shell/ash.c b/shell/ash.c index d7355ce81..952961373 100644 --- a/shell/ash.c +++ b/shell/ash.c | |||
@@ -13317,7 +13317,7 @@ int ash_main(int argc UNUSED_PARAM, char **argv) | |||
13317 | } | 13317 | } |
13318 | 13318 | ||
13319 | if (sflag || minusc == NULL) { | 13319 | if (sflag || minusc == NULL) { |
13320 | #if ENABLE_FEATURE_EDITING_SAVEHISTORY | 13320 | #if MAX_HISTORY > 0 && ENABLE_FEATURE_EDITING_SAVEHISTORY |
13321 | if (iflag) { | 13321 | if (iflag) { |
13322 | const char *hp = lookupvar("HISTFILE"); | 13322 | const char *hp = lookupvar("HISTFILE"); |
13323 | if (hp) | 13323 | if (hp) |