Просмотр исходного кода

fix argument check for the rred method

David Kalnischkies лет назад: 16
Родитель
Сommit
cc0f9c8e10
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      methods/rred.cc

+ 1 - 1
methods/rred.cc

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