aboutsummaryrefslogtreecommitdiff
path: root/src/svf
diff options
context:
space:
mode:
authorPaul Fertser <fercerpav@gmail.com>2015-11-20 13:08:20 +0300
committerFreddie Chopin <freddie.chopin@gmail.com>2015-11-20 22:27:48 +0000
commita652a4ea209d24d0f0ebcc73e5eaab14169f958d (patch)
tree80dcd0d376229467487c8544e65e74dc60e84856 /src/svf
parent40bd770f4523ac341892ece765d76d929f2174dc (diff)
downloadriscv-openocd-a652a4ea209d24d0f0ebcc73e5eaab14169f958d.zip
riscv-openocd-a652a4ea209d24d0f0ebcc73e5eaab14169f958d.tar.gz
riscv-openocd-a652a4ea209d24d0f0ebcc73e5eaab14169f958d.tar.bz2
svf: fix progress reporting switch behaviour
The svf_progress_enabled variable is global, hence its lifetime is not limited and it retains the value from the previous run. Fix this by explicit assignment. Change-Id: Id6f4fa88f39521606342a37f6876a0948ac5406e Signed-off-by: Paul Fertser <fercerpav@gmail.com> Reviewed-on: http://openocd.zylin.com/3111 Tested-by: jenkins Reviewed-by: Freddie Chopin <freddie.chopin@gmail.com>
Diffstat (limited to 'src/svf')
-rw-r--r--src/svf/svf.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/svf/svf.c b/src/svf/svf.c
index 73c75ee..7b7b8d0 100644
--- a/src/svf/svf.c
+++ b/src/svf/svf.c
@@ -378,6 +378,7 @@ COMMAND_HANDLER(handle_svf_command)
/* parse command line */
svf_quiet = 0;
svf_nil = 0;
+ svf_progress_enabled = 0;
svf_ignore_error = 0;
for (unsigned int i = 0; i < CMD_ARGC; i++) {
if (strcmp(CMD_ARGV[i], "-tap") == 0) {