Changeset: 218c1171efdb for MonetDB
URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=218c1171efdb
Modified Files:
        tools/mserver/mserver5.c
Branch: default
Log Message:

Fix argument parsing.
Did you actually test your code?


diffs (22 lines):

diff --git a/tools/mserver/mserver5.c b/tools/mserver/mserver5.c
--- a/tools/mserver/mserver5.c
+++ b/tools/mserver/mserver5.c
@@ -285,7 +285,7 @@ main(int argc, char **av)
        for (;;) {
                int option_index = 0;
 
-               int c = getopt_long(argc, av, "c:::d?:r:s:::::t:::::",
+               int c = getopt_long(argc, av, "c:d::rs:t::?",
                                long_options, &option_index);
 
                if (c == -1)
@@ -406,8 +406,7 @@ main(int argc, char **av)
                        }
                        break;
                case 't':
-                       if (strcmp(long_options[option_index].name, "trace") == 
0)
-                               mal_trace = optarg? optarg:"ISTest";
+                       mal_trace = optarg? optarg:"ISTest";
                        break;
                case '?':
                        /* a bit of a hack: look at the option that the
_______________________________________________
checkin-list mailing list
[email protected]
http://mail.monetdb.org/mailman/listinfo/checkin-list

Reply via email to