X-Git-Url: https://review.openocd.org/gitweb?p=openocd.git;a=blobdiff_plain;f=src%2Fxsvf%2Fxsvf.c;h=909d7a1e76973b95eb876a0d6795237f8b81f7cb;hp=17af9eadd783e7481c3a33f8a605222bee337cda;hb=ca594adb5a71f2bf60c1380172b8e61b075d9479;hpb=9741e126fd854815460296ad47d027129c7f17bf diff --git a/src/xsvf/xsvf.c b/src/xsvf/xsvf.c index 17af9eadd7..909d7a1e76 100644 --- a/src/xsvf/xsvf.c +++ b/src/xsvf/xsvf.c @@ -202,7 +202,6 @@ static int handle_xsvf_command(struct command_context_s *cmd_ctx, char *cmd, cha int tdo_mismatch = 0; int result; int verbose = 1; - char *filename; bool collecting_path = false; tap_state_t path[XSTATE_MAX_PATH]; @@ -226,7 +225,8 @@ static int handle_xsvf_command(struct command_context_s *cmd_ctx, char *cmd, cha return ERROR_FAIL; } - filename = args[1]; /* we mess with args starting point below, snapshot filename here */ + /* we mess with args starting point below, snapshot filename here */ + const char *filename = args[1]; if (strcmp(args[0], "plain") != 0) {