aboutsummaryrefslogtreecommitdiff
path: root/src/piesctl.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/piesctl.c')
-rw-r--r--src/piesctl.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/piesctl.c b/src/piesctl.c
index 71efbcd..aa6150a 100644
--- a/src/piesctl.c
+++ b/src/piesctl.c
@@ -1476,7 +1476,7 @@ parse_condition_to_uri (char const *base, struct cmdline_parser_state *state,
{
struct json_value *val;
char *ret;
- if (mandatory && state->argc == 1)
+ if (mandatory && state->argc == 0)
parse_error ("%s", _("condition must be specified"));
val = parse_condition (state);
ret = piesctl_format (val, base);
@@ -1721,7 +1721,7 @@ com_id (struct cmdline_parser_state *state)
size_t size = 0;
size_t i;
- for (i = 1; i < state->argc; i++)
+ for (i = 0; i < state->argc; i++)
{
grecs_asprintf (&buf, &size, "/instance/%s", state->argv[i]);
shttp_io_init (&conn->req);

Return to:

Send suggestions and report system problems to the System administrator.