Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
prop: add extra assert to prop_read_value()
  • Loading branch information
perexg committed Oct 3, 2014
1 parent 5fff5d4 commit 7544c6e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/prop.c
Expand Up @@ -265,11 +265,12 @@ prop_read_value
val = p->get(obj);

/* List */
if (p->islist)
if (p->islist) {
assert(p->get); /* requirement */
htsmsg_add_msg(m, name, (htsmsg_t*)val);

/* Single */
else {
} else {
switch(p->type) {
case PT_BOOL:
htsmsg_add_bool(m, name, *(int *)val);
Expand Down

0 comments on commit 7544c6e

Please sign in to comment.