Browse Source

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>
tags/v0.10.0-rc1
Paul Fertser 8 years ago
committed by Freddie Chopin
parent
commit
a652a4ea20
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      src/svf/svf.c

+ 1
- 0
src/svf/svf.c View File

@@ -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) {


Loading…
Cancel
Save