]> git.tdb.fi Git - libs/core.git/blobdiff - grep.cpp
Remove the "optimization" of omitting MATCH_CHAR instruction for characters >LAST_INS...
[libs/core.git] / grep.cpp
index eaf1663e7cf1098b42aabd4b9dc454b5f09f61e6..07743072be997253e83356cd5704ea414be7c282 100644 (file)
--- a/grep.cpp
+++ b/grep.cpp
@@ -14,7 +14,7 @@ int main(int argc, char **argv)
        getopt.add_option('d', "debug", debug, GetOpt::NO_ARG);
        getopt(argc, argv);
 
-       const list<string> &args=getopt.get_args();
+       const vector<string> &args=getopt.get_args();
 
        if(args.empty())
        {
@@ -22,7 +22,7 @@ int main(int argc, char **argv)
                return 1;
        }
 
-       Regex regex(argv[1]);
+       Regex regex(args[0]);
        if(debug)
                cout<<regex.disassemble();
        string line;