The option line may start with a space, which gives an empty option.
[openssl.git] / util / mk1mf.pl
index 0db416a6d4a0c09a82b07b5fe82a8caa240b3443..ff0dbecc455df47f16b559a5deb9a4b68bff7e3e 100755 (executable)
@@ -81,7 +81,7 @@ EOF
                }
        $platform=$_;
        }
-foreach (split / /, $OPTIONS)
+foreach (grep(!/^$/, split(/ /, $OPTIONS)))
        {
        print STDERR "unknown option - $_\n" if !&read_options;
        }