diff options
-rw-r--r-- | src/binfmt/binfmt.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/binfmt/binfmt.c b/src/binfmt/binfmt.c index 0c65957ae4..07a736dcc9 100644 --- a/src/binfmt/binfmt.c +++ b/src/binfmt/binfmt.c @@ -200,15 +200,13 @@ static int run(int argc, char *argv[]) { if (arg_unregister) return disable_binfmt(); - if (argc > optind) { - int i; - - for (i = optind; i < argc; i++) { + if (argc > optind) + for (int i = optind; i < argc; i++) { k = apply_file(argv[i], false); if (k < 0 && r == 0) r = k; } - } else { + else { _cleanup_strv_free_ char **files = NULL; char **f; |