Skip to content

Commit

Permalink
xmlrpc: fixed error assigning to str variable added by previous commit
Browse files Browse the repository at this point in the history
(cherry picked from commit 4c6715b)
  • Loading branch information
miconda committed Mar 29, 2021
1 parent 25c26de commit 2c154f3
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions src/modules/xmlrpc/xmlrpc.c
Expand Up @@ -264,7 +264,8 @@ static str member_prefix = STR_STATIC_INIT("<member>");
static str member_suffix = STR_STATIC_INIT("</member>");
static str name_prefix = STR_STATIC_INIT("<name>");
static str name_suffix = STR_STATIC_INIT("</name>");
static str nil_value = STR_STATIC_INIT("<nil/>");
static str empty_value = STR_STATIC_INIT("");
static str nil_value = STR_STATIC_INIT("<nil/>");

/** Garbage collection data structure.
*
Expand Down Expand Up @@ -1073,8 +1074,8 @@ static int print_value(struct xmlrpc_reply* res,
suffix = string_suffix;
body.len = strlen(body.s);
} else {
prefix = "";
suffix = "";
prefix = empty_value;
suffix = empty_value;
body = nil_value;
}
break;
Expand All @@ -1086,8 +1087,8 @@ static int print_value(struct xmlrpc_reply* res,
suffix = string_suffix;
body = *sp;
} else {
prefix = "";
suffix = "";
prefix = empty_value;
suffix = empty_value;
body = nil_value;
}
break;
Expand Down

0 comments on commit 2c154f3

Please sign in to comment.