Bugfix in verilog_defaults argument parser
authorClifford Wolf <clifford@clifford.at>
Sun, 24 Dec 2017 16:21:37 +0000 (17:21 +0100)
committerClifford Wolf <clifford@clifford.at>
Sun, 24 Dec 2017 16:21:37 +0000 (17:21 +0100)
frontends/verilog/verilog_frontend.cc

index 19fc3c6afa6109b515f3db8cd533267fa1be59bd..e5917b97eb84bf09415d99035f40cab5c32fec39 100644 (file)
@@ -407,7 +407,7 @@ struct VerilogDefaults : public Pass {
        }
        virtual void execute(std::vector<std::string> args, RTLIL::Design*)
        {
-               if (args.size() == 0)
+               if (args.size() < 2)
                        cmd_error(args, 1, "Missing argument.");
 
                if (args[1] == "-add") {