summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2009-06-01 18:02:49 (GMT)
committer Mike Frysinger <vapier@gentoo.org>2009-06-01 18:16:43 (GMT)
commitf524b6c87f2a34c1fd29dc8ecf9156eb418d4ea0 (patch)
tree1cb1e50d1e70a69c5069b55443136552d3e972fa
parent28a105d867b6fe429c5f2f14a42e1dbb41236156 (diff)
downloadbusybox-f524b6c87f2a34c1fd29dc8ecf9156eb418d4ea0.tar.gz
busybox-f524b6c87f2a34c1fd29dc8ecf9156eb418d4ea0.tar.bz2
lineedit: fix warning about unused label when VI editing is disabled
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
-rw-r--r--libbb/lineedit.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libbb/lineedit.c b/libbb/lineedit.c
index 81f6fde..ccffedc 100644
--- a/libbb/lineedit.c
+++ b/libbb/lineedit.c
@@ -1635,7 +1635,9 @@ int FAST_FUNC read_line_input(const char *prompt, char *command, int maxsize, li
* if the len=0 and no chars to delete */
if (command_len == 0) {
errno = 0;
+#if ENABLE_FEATURE_EDITING_VI
prepare_to_die:
+#endif
/* to control stopped jobs */
break_out = command_len = -1;
break;