mirror of
https://github.com/systemd/systemd.git
synced 2024-12-27 07:22:31 +03:00
analyze: use strv_skip() where appropriate
This commit is contained in:
parent
0ed3da7c8c
commit
2987225ce6
@ -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)) {
|
||||
|
Loading…
Reference in New Issue
Block a user