avoid segfault when calling the log command without arguments

This commit is contained in:
Axel Kohlmeyer
2020-07-06 10:25:37 -04:00
parent 461633e6f6
commit f1abfe2411

View File

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