Commit 5545e602 authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

Specifying the process->spec twice in one line is

almost certainly an error, so make it one.
parent 40625f51
...@@ -859,6 +859,7 @@ cmd_process(CMD_ARGS) ...@@ -859,6 +859,7 @@ cmd_process(CMD_ARGS)
struct process *p, *p2; struct process *p, *p2;
uintmax_t u, v; uintmax_t u, v;
unsigned lin,col; unsigned lin,col;
int spec_set = 0;
(void)priv; (void)priv;
(void)cmd; (void)cmd;
...@@ -1009,9 +1010,10 @@ cmd_process(CMD_ARGS) ...@@ -1009,9 +1010,10 @@ cmd_process(CMD_ARGS)
av++; av++;
continue; continue;
} }
if (**av == '-') if (**av == '-' || spec_set)
vtc_fatal(p->vl, "Unknown process argument: %s", vtc_fatal(p->vl, "Unknown process argument: %s",
*av); *av);
REPLACE(p->spec, *av); REPLACE(p->spec, *av);
spec_set = 1;
} }
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment