summaryrefslogtreecommitdiffstats
path: root/cmd-run-shell.c
diff options
context:
space:
mode:
authornicm <nicm>2021-08-13 06:50:42 +0000
committernicm <nicm>2021-08-13 06:50:42 +0000
commita2b85069171413aa30c812d44bf8ee4d32a2f834 (patch)
tree8239a57c3ef6901d5ff14445ece8cbea12c3bf55 /cmd-run-shell.c
parente2f6f58fe50e233dcd0d924bd30c94d1161c666d (diff)
Set return code for confirm-before and make command-prompt also block,
GitHub issue 2822.
Diffstat (limited to 'cmd-run-shell.c')
-rw-r--r--cmd-run-shell.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/cmd-run-shell.c b/cmd-run-shell.c
index 56d5f723..7bc1d7cc 100644
--- a/cmd-run-shell.c
+++ b/cmd-run-shell.c
@@ -121,7 +121,6 @@ cmd_run_shell_exec(struct cmd *self, struct cmdq_item *item)
cdata->shell = !args_has(args, 'C');
if (!cdata->shell) {
- memset(&cdata->pi, 0, sizeof cdata->pi);
cmd_get_source(self, &cdata->pi.file, &cdata->pi.line);
if (wait)
cdata->pi.item = item;