diff --git a/cmd/mrregister.cpp b/cmd/mrregister.cpp index 68cdae5908..ffa2f7b7ab 100644 --- a/cmd/mrregister.cpp +++ b/cmd/mrregister.cpp @@ -670,7 +670,8 @@ void run() { } } - const bool nonlinear_init = !get_options("nl_init").empty(); + opt = get_options("nl_init"); + const bool nonlinear_init = !opt.empty(); if (nonlinear_init) { if (!do_nonlinear)