Update of /cvsroot/monetdb/sql/src/backends/monet5/merovingian
In directory 23jxhf1.ch3.sourceforge.com:/tmp/cvs-serv13074

Modified Files:
        monetdb.c 
Log Message:
fix off-by-one error, and avoid help message if start/stop -a has nothing to do

U monetdb.c
Index: monetdb.c
===================================================================
RCS file: /cvsroot/monetdb/sql/src/backends/monet5/merovingian/monetdb.c,v
retrieving revision 1.63
retrieving revision 1.64
diff -u -d -r1.63 -r1.64
--- monetdb.c   25 Sep 2009 09:09:12 -0000      1.63
+++ monetdb.c   25 Sep 2009 09:34:14 -0000      1.64
@@ -887,10 +887,12 @@
                        }
                        stats = stats->next;
                }
-               argc = i - 1;
+               argc = i;
        }
        
-       simple_argv_cmd(argc, argv, type, NULL, action);
+       /* -a can return nothing, avoid help message in that case */
+       if (argc > 1)
+               simple_argv_cmd(argc, argv, type, NULL, action);
 
        if (orig != NULL)
                SABAOTHfreeStatus(&orig);


------------------------------------------------------------------------------
Come build with us! The BlackBerry® Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9-12, 2009. Register now!
http://p.sf.net/sfu/devconf
_______________________________________________
Monetdb-sql-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/monetdb-sql-checkins

Reply via email to