mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2026-03-14 05:34:06 -04:00
spa/util/json-core: Fix condition checking for container end
Fixes the following warning:
/usr/include/spa-0.2/spa/utils/json-core.h: In function ‘spa_json_is_container_end’:
/usr/include/spa-0.2/spa/utils/json-core.h:404:41: warning: logical ‘or’ of equal expressions [-Wlogical-op]
404 | return len > 0 && (*val == '}' || *val == '}');
| ^~
This commit is contained in:
parent
3273ba6333
commit
3c1b8dcdcc
1 changed files with 1 additions and 1 deletions
|
|
@ -401,7 +401,7 @@ SPA_API_JSON int spa_json_is_container(const char *val, int len)
|
|||
}
|
||||
SPA_API_JSON int spa_json_is_container_end(const char *val, int len)
|
||||
{
|
||||
return len > 0 && (*val == '}' || *val == '}');
|
||||
return len > 0 && (*val == '}' || *val == ']');
|
||||
}
|
||||
|
||||
/* object */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue