Skip to content

Commit 9a06cc8

Browse files
committed
Fixed regression
1 parent 49e7f25 commit 9a06cc8

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/main/expr/Parameters.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -483,12 +483,12 @@ namespace lsp
483483
return add_null(name);
484484

485485
value_t v;
486-
status_t res = init_value_string(&v, name, value);
487-
if (res != STATUS_OK)
488-
return res;
486+
status_t res = init_value_string(&v, value);
487+
if (res == STATUS_OK)
488+
res = add_move(name, &v);
489489
lsp_finally { destroy_value(&v); };
490490

491-
return add_move(name, &v);
491+
return res;
492492
}
493493

494494
status_t Parameters::add_string(const char *name, const LSPString *value)

0 commit comments

Comments
 (0)