m_option: fix parsing of OP_APPEND for string lists

While parsing through the separators, the OP_APPEND also needs to use 0
for the separator since it is supposed to be unescaped. This was missed
in the code reorganization of d2c409c56b.
Keyvalue lists were unaffected because only OP_DELETE and OP_REMOVE use
this code.
This commit is contained in:
Dudemanguy committed 2025-02-05 18:38:46 +00:00
1 parent 3717a530ca
commit 493cc877cf
1 file changed
+1 -1
+1 -1
View File
@@ -1408,7 +1408,7 @@ static char **separate_input_param(const m_option_t *opt, bstr param,
int *len, int op)
{
char separator = opt->priv ? *(char *)opt->priv : OPTION_LIST_SEPARATOR;
if (op == OP_REMOVE)
if (op == OP_APPEND || op == OP_REMOVE)
separator = 0; // specially handled
struct bstr str = param;
int n = *len;