Unverified Commit f1abfe24 authored by Axel Kohlmeyer's avatar Axel Kohlmeyer
Browse files

avoid segfault when calling the log command without arguments

parent 461633e6
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1096,7 +1096,7 @@ void Input::label()

void Input::log()
{
  if (narg > 2) error->all(FLERR,"Illegal log command");
  if ((narg < 1) || (narg > 2)) error->all(FLERR,"Illegal log command");

  int appendflag = 0;
  if (narg == 2) {