Commit 43f1ca56 authored by Poul-Henning Kamp's avatar Poul-Henning Kamp Committed by Dridi Boukelmoune

Specifying the process->spec twice in one line is

almost certainly an error, so make it one.
parent f3c8cd4d
......@@ -859,6 +859,7 @@ cmd_process(CMD_ARGS)
struct process *p, *p2;
uintmax_t u, v;
unsigned lin,col;
int spec_set = 0;
(void)priv;
(void)cmd;
......@@ -1009,9 +1010,10 @@ cmd_process(CMD_ARGS)
av++;
continue;
}
if (**av == '-')
if (**av == '-' || spec_set)
vtc_fatal(p->vl, "Unknown process argument: %s",
*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