Explorar el Código

fix argument check for the rred method

David Kalnischkies hace 16 años
padre
commit
cc0f9c8e10
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      methods/rred.cc

+ 1 - 1
methods/rred.cc

@@ -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 {