From ecff4c7410800d9f9ccd9223c99b5695341ae4f5 Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Thu, 24 Apr 2008 22:51:45 +0000 Subject: [PATCH] 2008-04-24 Mike Frysinger * src/jtag.c (jtag_readline_loop): [ 1950315 ] Fix quiting when using the non readline version. git-svn-id: https://urjtag.svn.sourceforge.net/svnroot/urjtag/trunk@1181 b68d4a1b-bc3d-0410-92ed-d4ac073336b7 --- jtag/ChangeLog | 2 ++ jtag/src/jtag.c | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/jtag/ChangeLog b/jtag/ChangeLog index 7a9ca093..bfcdd1ff 100644 --- a/jtag/ChangeLog +++ b/jtag/ChangeLog @@ -3,6 +3,8 @@ * src/tap/usbconn/libusb.c (usbconn_libusb_connect): Use the usb_get_busses() function rather than the usb_busses global variable due to portability issues (like with libusb-win32). + * src/jtag.c (jtag_readline_loop): [ 1950315 ] Fix quiting when + using the non readline version. 2008-04-19 Kolja Waschk diff --git a/jtag/src/jtag.c b/jtag/src/jtag.c index f5506d54..23f8e954 100644 --- a/jtag/src/jtag.c +++ b/jtag/src/jtag.c @@ -225,7 +225,8 @@ jtag_readline_loop( chain_t *chain, const char *prompt ) line[0] = 0; do { - jtag_readline_multiple_commands_support( chain, line ); + if (!jtag_readline_multiple_commands_support( chain, line )) + break; printf("%s", prompt); fflush(stdout); }