path: root/common/complete.c
diff options
authorJean-Christophe PLAGNIOL-VILLARD <>2012-05-03 10:01:08 +0200
committerSascha Hauer <>2012-05-03 20:11:51 +0200
commit7e88b6c7f190e14db9b42987f6172b9cf245a075 (patch)
treee55705a7e603478128ad2bcf844c1f1faedae19e /common/complete.c
parentce38019845b1f3813c6aabd1cc6bdeac14c9ac3e (diff)
complete: fix duplicate env eval list
this can be reproductable by this sequence barebox:/ <TAB> . ? [ addpart bootm cat cd clear cp cpuinfo crc32 delpart devinfo dhcp echo edit erase ethact exit export false getopt go help host loadb loadenv loady login ls md md5sum memcmp memcpy meminfo memset menu mkdir mount mtest mw nfs passwd ping printenv protect pwd readline reset rm rmdir saveenv sedit sh sha1sum sha256sum sleep source test tftp time timeout true umount uncompress unprotect version net.nameserver= net.domainname= cs0.baudrate= cs1.ip= cs1.port= barebox:/ $<TAB> $net.nameserver $net.domainname $cs0.baudrate $ $ $cs1.ip $cs1.port $net.nameserver $net.domainname $cs0.baudrate $ $ $cs1.ip $cs1.port barebox:/ $ Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <> Signed-off-by: Sascha Hauer <>
Diffstat (limited to 'common/complete.c')
1 files changed, 1 insertions, 1 deletions
diff --git a/common/complete.c b/common/complete.c
index 0b03d7c..0780888 100644
--- a/common/complete.c
+++ b/common/complete.c
@@ -272,7 +272,7 @@ static char* cmd_complete_lookup(struct string_list *sl, char *instr)
struct command *cmdtp;
int len;
- int ret = 1;
+ int ret = COMPLETE_END;
char *res = NULL;
for_each_command(cmdtp) {