mirror of
https://github.com/Z3Prover/z3
synced 2025-04-08 10:25:18 +00:00
bypass append when src is empty
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
parent
a44a46a514
commit
ca18150c23
|
@ -565,6 +565,8 @@ void params_ref::set(params_ref const & p) {
|
|||
void params_ref::copy(params_ref const & src) {
|
||||
if (m_params == nullptr || m_params->empty())
|
||||
set(src);
|
||||
else if (src.empty())
|
||||
return;
|
||||
else {
|
||||
init();
|
||||
copy_core(src.m_params);
|
||||
|
|
Loading…
Reference in a new issue