counters: Fix exit status in error case

This commit is contained in:
Tobias Brunner 2018-09-17 16:13:22 +02:00
parent 66aca84eba
commit 0b8d00adaf
1 changed files with 2 additions and 2 deletions

View File

@ -48,7 +48,7 @@ static int counters(vici_conn_t *conn)
vici_res_t *res; vici_res_t *res;
command_format_options_t format = COMMAND_FORMAT_NONE; command_format_options_t format = COMMAND_FORMAT_NONE;
char *arg, *name = NULL; char *arg, *name = NULL;
int ret; int ret = 0;
bool all = FALSE, reset = FALSE; bool all = FALSE, reset = FALSE;
while (TRUE) while (TRUE)
@ -131,7 +131,7 @@ static int counters(vici_conn_t *conn)
} }
} }
vici_free_res(res); vici_free_res(res);
return 0; return ret;
} }
/** /**