analyze: use strv_skip() where appropriate

This commit is contained in:
Lennart Poettering 2018-11-06 12:05:26 +01:00
parent 0ed3da7c8c
commit 2987225ce6
1 changed files with 4 additions and 3 deletions

View File

@ -1340,15 +1340,16 @@ static int dump(int argc, char *argv[], void *userdata) {
}
static int cat_config(int argc, char *argv[], void *userdata) {
char **arg;
char **arg, **list;
int r;
(void) pager_open(arg_pager_flags);
STRV_FOREACH(arg, argv + 1) {
list = strv_skip(argv, 1);
STRV_FOREACH(arg, list) {
const char *t = NULL;
if (arg != argv + 1)
if (arg != list)
print_separator();
if (path_is_absolute(*arg)) {