Skip to content

Commit

Permalink
Merge pull request tvheadend#92 from adamsutton/master
Browse files Browse the repository at this point in the history
Minor fixes to htsmsg handling
  • Loading branch information
andoma committed Jun 15, 2012
2 parents bccec43 + 11944f0 commit dd1800c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 2 additions & 0 deletions src/htsmsg.c
Expand Up @@ -258,6 +258,7 @@ htsmsg_add_msg(htsmsg_t *msg, const char *name, htsmsg_t *sub)

assert(sub->hm_data == NULL);
TAILQ_MOVE(&f->hmf_msg.hm_fields, &sub->hm_fields, hmf_link);
f->hmf_msg.hm_islist = sub->hm_islist;
free(sub);
}

Expand All @@ -275,6 +276,7 @@ htsmsg_add_msg_extname(htsmsg_t *msg, const char *name, htsmsg_t *sub)

assert(sub->hm_data == NULL);
TAILQ_MOVE(&f->hmf_msg.hm_fields, &sub->hm_fields, hmf_link);
f->hmf_msg.hm_islist = sub->hm_islist;
free(sub);
}

Expand Down
5 changes: 4 additions & 1 deletion src/htsmsg_json.c
Expand Up @@ -233,7 +233,10 @@ htsmsg_json_parse_object(const char *s, const char **endp)

r = htsmsg_create_map();

while(1) {
while(*s > 0 && *s < 33)
s++;

if(*s != '}') while(1) {

if((name = htsmsg_json_parse_string(s, &s2)) == NULL) {
htsmsg_destroy(r);
Expand Down

0 comments on commit dd1800c

Please sign in to comment.