fix argument check for the rred method
authorDavid Kalnischkies <kalnischkies@gmail.com>
Thu, 19 Nov 2009 22:55:33 +0000 (23:55 +0100)
committerDavid Kalnischkies <kalnischkies@gmail.com>
Thu, 19 Nov 2009 22:55:33 +0000 (23:55 +0100)
methods/rred.cc

index 7236efd..c2d8eb5 100644 (file)
@@ -530,7 +530,7 @@ public:
  *  and will write the result to "Testfile.result".
  */
 int main(int argc, char *argv[]) {
-       if (argc == 0) {
+       if (argc <= 1) {
                RredMethod Mth;
                return Mth.Run();
        } else {