prop: add extra assert to prop_read_value()
This commit is contained in:
parent
5fff5d40bc
commit
7544c6e9b0
1 changed files with 3 additions and 2 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue