Skip to content

Commit

Permalink
script_validator segfault fix
Browse files Browse the repository at this point in the history
Fix script to verify that both init_script and compare_script parameters are defined

Signed-off-by: Vitalii Koshura <lestat.de.lionkur@gmail.com>
  • Loading branch information
AenBleidd committed Jul 20, 2018
1 parent aae36b1 commit e442d8a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sched/script_validator.cpp
Expand Up @@ -76,9 +76,9 @@ int validate_handler_init(int argc, char** argv) {
}
}

if (!init_script.size() && !compare_script.size()) {
if (!init_script.size() || !compare_script.size()) {
log_messages.printf(MSG_CRITICAL,
"script names missing from command line\n"
"init_script and/or compare_script names are missing from command line\n"
);
return 1;
}
Expand Down

0 comments on commit e442d8a

Please sign in to comment.