summaryrefslogtreecommitdiffstats
path: root/cmd-queue.c
diff options
context:
space:
mode:
authornicm <nicm>2016-01-19 16:01:30 +0000
committernicm <nicm>2016-01-19 16:01:30 +0000
commitb5b5221c13ded5b141fa35f60c707c9c403b83a6 (patch)
tree881fffd252c499ab94939520ac067f476f0b6bac /cmd-queue.c
parent995af0e2b72aec54ba3685b1a8ce5e78d279d8ff (diff)
Split out getting the current state from the target search so it can be
replaced if we already know the current.
Diffstat (limited to 'cmd-queue.c')
-rw-r--r--cmd-queue.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd-queue.c b/cmd-queue.c
index fcca7eb6..1c80c59d 100644
--- a/cmd-queue.c
+++ b/cmd-queue.c
@@ -199,7 +199,7 @@ cmdq_continue_one(struct cmd_q *cmdq)
cmdq_guard(cmdq, "begin", flags);
- if (cmd_prepare_state(cmd, cmdq) != 0)
+ if (cmd_prepare_state(cmd, cmdq, NULL) != 0)
goto error;
retval = cmd->entry->exec(cmd, cmdq);
if (retval == CMD_RETURN_ERROR)