Przeglądaj źródła

fix argument check for the rred method

David Kalnischkies 16 lat temu
rodzic
commit
cc0f9c8e10
1 zmienionych plików z 1 dodań i 1 usunięć
  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 {