From bed8c01a107d494e35578bcaeb6c4d374405d00c Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Sun, 17 Jul 2022 12:44:47 +0100 Subject: [PATCH] prefork: Remove a wrong check This is just not true at all. Perhaps it was to check for malloc failure? Anyway, split_argv comes from split_argv and shbang_opts never sets it to zero. Signed-off-by: Ian Jackson --- cprogs/prefork.c | 1 - 1 file changed, 1 deletion(-) diff --git a/cprogs/prefork.c b/cprogs/prefork.c index e352238..f306ffc 100644 --- a/cprogs/prefork.c +++ b/cprogs/prefork.c @@ -334,7 +334,6 @@ const char *process_opts(int argc, const char *const *argv) { shbang_opts(&split_argv, cmdinfos); /* sets interp */ - if (!split_argv) badusage("combined arg too many non-option arguments"); } else { shbang_opts(&argv, cmdinfos); } -- 2.30.2